Hide Email from Spambots but not from users

i always love to click the mail button instead of typing and matching email from the image.
Spammers have made our lives miserable :(

using this little piece of javascript can give you both, a text email link and no spam :D

most of search engines + spam bots don’t check the script tag, but even if they check that who is gonna extract email from the script :D

  1. <script language=javascript>
  2. <!--
  3. var linktext = "Contact";
  4. var username = "Admin";
  5. var domain = "website.com";
  6. document.write("<a href=" + "ma" + "il" + "to" + ":" + username + "@" + domain + ">" + linktext + "</a>");
  7. //-->
  8. </script>
  9. <noscript>
  10. <!-- No Script for searh engines and spam bots -->
  11. <img src="http://mydomain.com/myemail.jpg" alt="Im sorry but youll have to type it manually" />
  12. </noscript>

I see dead Spammers hehehe.

About Hasnat

I R TEH 1337
This entry was posted in Web Development. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>