User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 427,794 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,727 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser: Programming Forums
Views: 1922 | Replies: 2
Reply
Join Date: Jul 2004
Posts: 1
Reputation: cajun is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cajun's Avatar
cajun cajun is offline Offline
Newbie Poster

Help email address harvesting - prevention?

  #1  
Jul 14th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Posts: 232
Reputation: Dogtree is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
Dogtree's Avatar
Dogtree Dogtree is offline Offline
Posting Whiz in Training

Re: email address harvesting - prevention?

  #2  
Jul 14th, 2006
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.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: email address harvesting - prevention?

  #3  
Aug 12th, 2006
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]
<a href="mailto:name@server">name@server</a>
[/html]

as

[html]
<script type="text/javascript">emLink("eman, revres");</script>
[/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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Site Layout and Usability Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Site Layout and Usability Forum

All times are GMT -4. The time now is 1:57 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC