NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page Howto: Protect Against Spam Crawlers

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 08-10-2003, 09:54 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
Mp)Tarh's Avatar
Join Date: Aug 2003
Location: Ontario, Canada
Posts: 98
Mp)Tarh is an unknown quantity at this point
 



Protect Against Spam Crawlers


How to protect your e-mail address:

This tutorial will show you how to protect your e-mail address against Spam Crawlers. If you don't already know what Spam Crawlers are, read this post by DarkDevil located here.

So, how do you protect your e-mail? Easy, it can be done with simple JavaScript - no need to use complicated Images or REMOVE text in e-mail links.

Let's take a basic example of an e-mail link to me@somewhere.com

<A HREF="mailto:me@somewhere.com" ALT="Mail Me!">me@somewhere.com</A>

Now this will not work, a Spam Crawler could pick up this e-mail easily. So how would you protect the example above? Like this:

-------------------- Revised Version ----------------------
<SCRIPT LANGUAGE="JavaScript">
<!-- hide me
function mailme()
{
window.location = "m" + "a" + "i" + "l" + "t" + "o" + ":" + "me"+ "@" + "somewhere" + "." + "c" + "o" + "m";
}
//-->
</SCRIPT>

<A HREF="JavaScript:void(1)" ALT="Mail Me!" onClick="mailme()" >Mail me</A>
????: NamePros.com http://www.namepros.com/webmaster-tutorials/15115-howto-protect-against-spam-crawlers.html
-------------------------------------

Pretty easy once you think about it huh?

Happy Programming!

P.S. In the second example the <A HREF> is pointing to "java script:void(1)", this was modified by the forum - in reality there are no spaces in "javascript:void(1)"

[edit]: I added the P.S.
__________________
Yeah... I knew that. What?
Mp)Tarh is offline  
Old 01-01-2004, 11:54 AM   #2 (permalink)
NamePros Member
 
Jamie_net's Avatar
Join Date: Dec 2003
Location: Usa
Posts: 136
Jamie_net is an unknown quantity at this point
 



Wow, I never knew how they even got my email off my website!
__________________
eyeonjamie.net
Jamie_net is offline  
Old 01-01-2004, 03:40 PM   #3 (permalink)
Senior Member
 
Webtwink's Avatar
Join Date: Jul 2003
Location: United States of America
Posts: 1,158
Webtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of lightWebtwink is a glorious beacon of light
 



wow this is a nice tutorial
Webtwink is offline  
Old 01-01-2004, 09:14 PM   #4 (permalink)
Senior Member
 
InteractAsia's Avatar
Join Date: Nov 2003
Location: Merlion City
Posts: 1,208
InteractAsia has a spectacular aura aboutInteractAsia has a spectacular aura about
 



thanks for that
__________________
ermm..do i need to put my sig here?
Free Short URL | Free Reseller Hosting | Free cPanel Blog Hosting
Hottest New Posters & Prints
InteractAsia is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 12:55 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger