This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

BetterAntiSpamBot

Description

BetterAntiSpamBot encrypts your email addresses with a dynamically generated JavaScript function.
We combine simplicity with obfuscation: Simplicity for you and complexity for bots.

Simply integrated

Protect yourself in just three steps:
1. First, select the text to link with your email address.
2. Then click the “@” button in the editor’s toolbar.
3. Finally, type your email address.
Alternatively, you may use the shortcode [bspam email="nospam@protected.com"]Email me[/bspam].

Dynamically generated

When encrypted email addresses are present on a page, BetterAntiSpamBot automatically adds a single, uniquely generated JavaScript function to the footer.
At first, it generates a key and splits it into variables. Secondly, it randomly generates all variable-, function- and parameter names using similar UTF-8 characters. The code finally gets compressed and reduced to one line.
That’s why BetterAntiSpamBot makes automated email harvesting very hard for spammers.

Developer friendly

BetterAntiSpamBot is a standalone php class with a WordPress framework.
In php, use the global variable $betterantispambot like this:
[…]href=”setmail(’email@addr.com’); ?>”[…]

Screenshots

  • Usage in TinyMCE Editor
  • Usage in PHP code

FAQ

Spammers can’t reverse the decryption. Really?

No. No encryption is 100% safe, everything is crackable.
But the randomness, especially in variable names and order, makes it almost impossible to create automation for it.

I made a script to crack your encryption!

PM me the source. I’ll fix that.

What is compatibility mode for?

It removes certain characters from the list, so that the obfuscated variables get accepted by very old JS engines.

I have a suggestion! / I found a bug! / Can I help?

PM me about it, I greatly appreciate all constructive feedback and input.

Changelog

1.0.1

  • Fixed “dirty” code (thanks pragmas for the hint)

1.0.0

  • Initial release

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code