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

Recommended Answers

All 2 Replies

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. dogtree@dogtreestudios.com would become dogtreeYOUKNOWWHATTOADDdogtreestudiosDOTNESScom.

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

<a href="mailto:name@server">name@server</a>


<script type="text/javascript">emLink("eman, revres");</script>

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--)
  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>';

I hope that helps someone.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.