Home } Miscellaneous } Anti-Spam



Hate spam? Fight back! This script will generate random e-mail addresses on a page that spambots will, in turn, try to contact. Because they aren't real, they will bounce back to the spammer's mailbox, which will keep them busy with fake addresses. This example generates 10 fake addresses but you can set the number as high as you want. Put the script on a blank page on your site and let the battle begin! (You could also have it link to several other pages with the same script. The spambot will follow the link and gather the other addresses also.)

The JavaScript Source: Miscellaneous: Anti-Spam

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

Sign up for the JavaScript Weekly

internet.com Privacy Policy
We'll send this script to you!

(just click "Send it!" once!)