JQuery Tutorials – Use JQuery to protect/rewrite emails from spam bots

Sharing is caring!

This jquery snippet protects your published email addresses from being obtained from spam bots.

Keep in mind that your (html)code must be in form Peter_[at]_example.com and the emails must be inside an ellement with mail class in order to let javascript replace the correct characters.

Of course you can modify it as you wish ;)

If you want to protect email addresses within the whole document you can try this one.

thnx for reading
regards, specktator

Series NavigationjQuery Tutorials – Hide/protect mailto: links from spam bots and email harvesters #2 >>


This site uses Akismet to reduce spam. Learn how your comment data is processed.