Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Javascript Bot Protection

Prevent automated registrations using javascript to fill a hidden field

Version: 1.1
Author: LePrau
Submitted: 7th October 2010
Last Updated: 22nd October 2010
-> Thread in the community forum
Please post suggestions, and any errors or problems you encounter into the thread!
If you like this plugin, please rate or review it!



In order to prevent automated registrations, this plugin uses a javascript filled form field.

As automated scripts most likely don't parse javascript at all, this should ensure that the client is a full featured browser, and should be under control of a real human being.

For smaller forums this might even completely replace a captcha, therefore increasing user acceptance, or just add some more protection.

This is how it works:
The plugin creates a hidden form field on the registration page and fills it with a value of your choice using javascript.
After submission of the registration form, it checks the submitted value. If it matches the one that should have been set by javascript, everything is fine and the account gets created.
If the value is not properly set (because the client did not parse the javascript) the user is redirected to the registration form with an error message.

Preview Image 2701

Installation in 3 steps:
  1. download .zip and extract
  2. upload "inc/" to your MyBB
  3. click "install" in the admin panel plugin section

To increase security you are encouraged to change the value that is submitted, as well as the name of the field.

Both field name and field value can be defined within the admin control panel within the setting group "Javascript Bot Protection".

Drawbacks:
Any person who is using a browser that does not evaluate javascript, will not be able to register.
This might be the case for blind people using a text only browser with a screen reader like jaws, or or other handicapped users.
In case you want to provide your service for them, too, you should not use this plugin, or provide another way of registering.
You might for example offer to create an account manually when requested via email.

You may change the language file to change the displayed message accordingly.