The SpamSpan module obfuscates email addresses to help prevent spambots from
collecting them. It is based on the technique from
spamspan but has undergone major modifications, as
the original spamspan code hasn't been updated since 2007.

The problem with most email address obfuscations is, that they rely upon
JavaScript being enabled on the client side. This makes the technique
inaccessible to people with screen readers. SpamSpan however will produce
clickable links if JavaScript is enabled, and will show the email address as
example [at] example.com if the browser does not support
JavaScript or if JavaScript is disabled.

This technique is unlikely to be absolutely foolproof. It is possible in theory
for a determined spambot to harvest addresses from your site, no matter how you
disguise them. But research suggests that by far the great majority of spambots
do not bother to attempt to collect addresses which have been hidden using
JavaScript.

Requirements

This module requires no modules outside of Drupal core.

Installation

Install as you would normally install a contributed Drupal module. For further
information, see
Installing Drupal Modules.

Configuration

  1. Go to the Extend page (/admin/modules), and enable the
    spamspan module (under Input Filters)

  2. Go to the Text Formats and Editors page (/admin/config/content/formats)
    and configure the desired input formats to enable the filter.

  3. (optional) Set available options under "Filter Settings".

Versions

Drupal 10.
The 3.x version is compatible with Drupal 10. It requires the php-xml extension installed on your web server, since it makes use of DOM (sudo apt-get install php-xml, when using apt-get).

Drupal 9.
Both the 3.x and the 8.x-2.x versions are compatible with Drupal 9, we recommend using the 3.x Branch, as older branches are not properly maintained anymore

Drupal 7
The 7.x-1.x is Drupal 7 compatible. NOTE, that this version is not properly maintained anymore.

Supporting organizations: 
proudly helped to improve this module for the Drupal community

Project information

Releases