View Full Version : Prevent email harvesting

07-18-2003, 03:08 AM
Does anyone know of a way to mogrify or otherwise mask the email address displayed on a given listing to prevent email harvesting? I've seen this done using Javascript. There should be a way to do this - perhaps using images??

09-11-2003, 01:51 AM

Here is a code i use

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<script language="Javascript">
// Javascript

function mailto()
var username = 'awdcars';
var domain = 'awddesign.co.uk';

document.location = 'mailto:' + username + '@' + domain;

<BODY text=#000000 bgColor=#ffffff >

Add this code to the main page

<a href="javascript:mailto()">Click here to email</a>

hope this helps



09-15-2003, 12:34 PM
If you have php on your server you could upload this on your server and encode your email:


I dont know how well it works, get the same amount of spam i did before i used it. I guess I'm on every spammers email list there is, had my email address too long.

But I can tell you about a cool spam prevention program that takes advantage of SpamAssassin http://www.spamassassin.org/index.html which is one of the best opensource spam detection softwares. The program is call SAProxy http://saproxy.bloomba.com/. It's also free unless you want support.

Cheers 8)