Encode emails to stop spam harvesting

  • Snippet Length: 5 minutes
  • Difficulty: Easy
  • Knowledge: HTML

Just a quick snippet here; there are many ways in which to make it as hard as possible for spam harvesting bots to scan for possible email addresses and store them one method is to HTML Encode each character in the mailto link.

Let us take the following email address info@example.com we can convert it with a free online conversion tool for ease.

We can then put this generated code

instead of this


we use this


comments powered by Disqus