| How to stop mail spam |
|
| 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)
![]() Write comment
|
| < Prev | Next > |
|---|





