»
EnglishFrenchVietnamese

Print - Anti-Spam - JavaScriptBank.com

Full version: jsB@nk » Email » Anti-Spam
URL: https://www.javascriptbank.com/anti-spam.html

Anti-Spam © JavaScriptBank.comHate 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.

Full version: jsB@nk » Email » Anti-Spam
URL: https://www.javascriptbank.com/anti-spam.html



JavaScript
<script type="text/javascript"><!--//Created by: Tim Shaw :: http://www.bigwowwebhosting.com/function makeEmail() {  var strValues="abcdefg12345";  var strEmail = "";  var strTmp;  for (var i=0;i<10;i++) {    strTmp = strValues.charAt(Math.round(strValues.length*Math.random()));    strEmail = strEmail + strTmp;  }  strTmp = "";  strEmail = strEmail + "@";  for (var j=0;j<8;j++) {    strTmp = strValues.charAt(Math.round(strValues.length*Math.random()));    strEmail = strEmail + strTmp;  }  strEmail = strEmail + ".com"  return strEmail;}--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<script type="text/javascript"><!-- Begin  for (var rePeat=1; rePeat<11; rePeat++) {    /* Set the second number above (11) to one number higher than    the number of e-mail addresses you want displayed on the page. */    document.write('<a href="mailto:' + makeEmail() + '">Email Us<br></a>')  }// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->