Hide Email Addresses from Spammers
 
Network Websites
Corporate website
Beautiful Clip Art
Fast Cars
Video Tiger
Fantasy Art
Beauty & Health
Tips & Tricks

Fast Loading Pages
Glowing Links II
Hide E-mail Address
Javascript Links
Link Colors
Marquees
Navigation
New Window
No Underline Links
Out of a Frame
Page Flash Effects
Preload Graphics Protect Graphics
Redirect Scrolling Javascript
Text Roll-Overs
Tooltip Links
[more tips...]

Tutorials
CSS
Colors
Forms
FTP
Image Maps
Meta Tags
Resources

Web Hosting
Counters & Trackers
Domain Names
Graphics
Web Page Design
Java Script
DHTML

 

How to hide email addresses from spammers

Unfortunately, there are a lot of unscrupulous people who send spam by the hundreds of thousands each day. Well, here's one way to seriously decrease spam.

Spammers comb HTML page source with robots looking for addresses that look like fake@ooo.com (hope they try to send to that one!), and they won't be able to do much with addresses coded using the following java script unless they visit every Web page by hand (which would be an ideal punishment for a spammer...).

Even if you're not a programmer, you should be able to handle this one. Basically, the code keeps the mailto:, your name, and your domain separate in the HTML file, combining them only when the page is browsed. It will even work with FrontPage:

<script language=javascript>
<!--
// By Joseph McLean <flux@thecentre.com>
var linktext = "Web Spider";
var email1 = "webmaster";
var email2 = "freewebmastertips.com";

document.write("<a href=" + "mail" + "to:" + email1 + "@" + email2 + ">" +
linktext + "</a>")
//-->
</script>

To customize, replace "Web Spider" with the text you want people to click on. Also, following email1 replace webmaster with your name (if your e-mail address is john@0000.com, put john there). Finally, following email2 replace freewebmastertips.com with the rest of your address.

Implement this code and get rid of a lot of spam!

Tips and Tricks

Sponsor

Hot Wedding Ideas

Advertise
Really affordable rates.
Feedback
Comments, suggestions?

 

 

home | tips & tricks | tutorials | tools | resources | contact | advertise
© 2000 - 2001 GT Media Inc. All rights reserved.