2 min read

Drupal 7 Invisimail module: hide email addresses from spam bots

Spam is a serious issue for many websites. But what should you do if spam not only bothers you but also your visitors and clients whose email addresses are displayed on the website? The Invisimail module can help us solve this issue.

Invisimail hides email addresses from search engines and spam bots using two methods:

  • Encoding emails using HTML entities
  • Encoding emails with a JavaScript wrapper and HTML entities

How does it work?

To use this module, enable your preferred encoding type in the text format settings.

Drupal 7 Invisimail

Depending on the selected method, email addresses will be displayed differently. If the HTML entities encoding method is chosen, viewing the source code will show emails as depicted in the image below, preventing bots from recognizing them as emails.

Drupal 7 Invisimail

If you choose the JavaScript encoding method, email addresses will not be visible to bots at all. However, users with JavaScript disabled will also not see the email addresses.

This is a simple way to protect email addresses from spam bots on your website.