Posted By

mahalie on 06/18/09


Tagged

email spam prevention mailto protection Obfuscation


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Who likes this?

3 people have marked this snippet as a favorite

nerdfiles
isocele
wanderlusts


Gracefully degrading email obfuscation


Published in: JavaScript 






URL: http://23rdworld.com/2009/04/08/email-protection-using-css/

This is a simple (comparatively) way to protect email addresses from spam bots, starting with JavaScript mail link, but unlike most scripts there is still an email address available to the user (optional) using a CSS hack to protect it - so it is selectable but not an actual mailto:link.

Expand | Embed | Plain Text
  1. <style type="text/css">
  2. .backwards {
  3. unicode-bidi:bidi-override; direction: rtl;font-weight:bold;
  4. }
  5. </style>
  6. <script type="text/javascript">
  7. <!--
  8. linkAddy=('alias' + '@' + 'yourdomain.com')
  9. document.write('<a href="mailto:' + linkAddy + '">' + linkAddy + '</a>')
  10. //-->
  11. </script>
  12.  
  13. <noscript>
  14. <p>Please email me at
  15. <strong><span class="backwards">moc.niamodruoy@saila</span>
  16. </strong>.<br /></p>
  17. </noscript>

Report this snippet 

You need to login to post a comment.

Download royalty free graphics