Skip to content

tu7uh.net Network Blog - Tutorial, Development, Discussion, IRC, Music, Video

Home Sitemap About Me
You are here: Home arrow Blog arrow Tutorial arrow How to stop mail spam
How to stop mail spam E-mail
Written by Jimmy   
Monday, 04 June 2007

Are you worried that spammers and robots are collecting your e-mail address from your web pages? One way to avoid this is to completely remove your e-mail address from anywhere on your site. Robots scan your page looking for the HTML code mailto: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it e-mail address is being protected from spam bots, you need JavaScript enabled to view it and they collect it to a database that is either sold or used by them.

I came across this neat little script while surfing and wanted to share it with everyone. Simply edit it and insert your own email address. Then whenever you want to display your email address you use that code. This separates your email address into two parts using javascript. This way your address is read as "name@ + domain.com" thus when robots scan the page they do not find an email address.

<SCRIPT TYPE="text/javascript">
  emailE=('yourname@' + 'emailserver.com')   
  document.write(
    '<A href="mailto:' + emailE + '">'
    + emailE + '</a>'
  )
</SCRIPT>
<NOSCRIPT>
    <em>Email address protected by JavaScript.<BR>
    Please enable JavaScript to contact me.</em>
</NOSCRIPT>

The results are your e-mail address readable and clickable to all humans and invisible to spammers!

Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy
 
< Prev   Next >

Syndicate

Comment

Web - How to use gra...
;D test
Web - How to use gra...
Testing fsdmfdsds
Web - How to use gra...
This is a test
Web - How to use gra...
cverwcvwe
IRC - Channel protec...
huh semua otai2 kat dalam nie :P
5 New Nokia Model
I love so it
Web - How to use gra...
check12sadfasdfasdfas

[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size