954,132 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

email address harvesting - prevention?

Hi all
What is the safest way to put an email on a website without it being added to every spam list known to man. I am copying all the info from our old website to our new one (created with joomla) and want to find the best way.

All suggestions appreciated

cajun
Newbie Poster
3 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

The only way I can think of would be to munge the address. The problem with that is people can't click on it anymore and be able to mailto. A spam crawler can just as easily check your source as it can your page contents, so any email addresses would need to be specifically represented so only a human being with half a brain can transform them into something legit. [email]dogtree@dogtreestudios.com[/email] would become dogtreeYOUKNOWWHATTOADDdogtreestudiosDOTNESScom.

Dogtree
Posting Whiz in Training
233 posts since May 2005
Reputation Points: 35
Solved Threads: 3
 

I know this is an old thread, but I thought it was worth resurrecting for a solution.

The following script will disguise the e-mail link
[html]
name@server
[/html]

as

[html]

[/html]

You simply reverse the order of the letters (name = eman, server = revres).

function stringReverse(textString) {
  if (!textString) return '';
  var revString = '';
  for (i = textString.length-1; i>=0; i--)
    revString+=textString.charAt(i)
  return revString;
}

function emLink(name, server) {
  var rname    = stringReverse(name);
  var rserver  = stringReverse(server);
  var email    = rname + "@" + rserver;
  var mailText = '<a href="mailto:' + email + '">' + email + '</a>';
	
  document.write(mailText);	
}


I hope that helps someone.

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: