[advanced search]
29 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Webmaster Tutorials
User Name
Password

Old 08-10-2003, 09:54 AM   · #1
Mp)Tarh
....what?
 
Mp)Tarh's Avatar
 
Location: Ontario, Canada
Trader Rating: (0)
Join Date: Aug 2003
Posts: 101
NP$: 171.00 (Donate)
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>
-------------------------------------

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.


Please register or log-in into NamePros to hide ads
__________________
Yeah... I knew that. What?
Mp)Tarh is offline   Reply With Quote
Old 01-01-2004, 11:54 AM   · #2
Jamie_net
NamePros Member
 
Jamie_net's Avatar
 
Name: Jamie
Location: Usa
Trader Rating: (2)
Join Date: Dec 2003
Posts: 137
NP$: 54.00 (Donate)
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   Reply With Quote
Old 01-01-2004, 03:40 PM   · #3
Webtwink
Name Pros Samrath
 
Webtwink's Avatar
 
Location: United States of America
Trader Rating: (36)
Join Date: Jul 2003
Posts: 1,166
NP$: 52.25 (Donate)
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 light
wow this is a nice tutorial
Webtwink is offline   Reply With Quote
Old 01-01-2004, 09:14 PM   · #4
InteractAsia
Connecting the World
 
InteractAsia's Avatar
 
Location: Merlion City
Trader Rating: (14)
Join Date: Nov 2003
Posts: 1,220
NP$: 75.00 (Donate)
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   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Buy Flash Arcade Game Script Thousand Dollar Profits Get Me Visits
Advertise your business at NamePros
All times are GMT -7. The time now is 02:37 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0