Helpful tip [edited version]

Darfion

Soapbox guru...
Joined
Jun 13, 2003
Messages
1,498
Reaction score
14
Location
Wigan, Lancashire
Website
www.darfion.co.uk
Can others edit my Photos
Photos OK to edit
If you'd like to display your email address within your web pages, but are afraid it will be harvested by Spam robots, you can protect yourself. Instead of displaying the usual mailto:[email protected], use the following code within your HTML:
mail.jpg

When clicked on it will show correctly.

Hope this helps
 
I've heard that the spiders are on to that trick. I think you need to get a bit more complex for it to work. I use this.

Code:
<script language="JavaScript">
<!--
	var atsign = "@";
	var addr = "you"+"raddy"+ atsign +"you"+"rdomain"+"."+"co"+"m";
	document.write("<"+"a r"+"ef="+"mai"+"lto:"+ addr +" >"+ addr +"</"+"a>");
-->
</script>

(edited to make generic)
 
I prefer the break up the "mailto:" also, so that the spider doesn't even know there there is an address there to begin with.

Walt, there are programs that go through web pages looking for e-mail addresses to add to spam lists. This is a way to post your address in a manner that hides the address from the 'bot while still allowing people to click on it as normal.
 

Most reactions

Back
Top