Un-checking “Anyone can register” in Settings only hides the sign-up link from login page, it doesn’t disable user registration and bots can continue to create users programatically.
This plugin stops them. Activate it, uncheck “Anyone can register” and the only way to add new users will be from Dashboard, being logged in with an account having the
create_users capability, by going to
Users > Add new.
Very Important Notice
If you managed to lock yourself out of the admin area and are trying to create a new user with
administrator role by uploading and executing a
php file on your server, this plugin will effectively block the attempt. You will need to rename or delete the folder of this plugin (in order to deactivate it) to be able to add users from scripts without being logged in into an account having the
- Deactivate from Plugins list in WordPress Dashboard…
- …or rename/delete plugin folder (
- Install the plugin from WP repository or upload it to the
/wp-content/plugins/directory of your website.
- Activate from ‘Plugins’ menu in WordPress.
- You’re done. No more bot created user accounts!
- Happy WordPress-ing!
- Are you going to maintain this plugin?
Yes, I intend to keep this plugin compatible with the latest version of WordPress.
- It doesn’t work! A new user just registered on my website!
Make sure the
"Anyone can register"checkbox is unchecked in Dashboard > Settings > General. If it was checked, do not forget to save changes (bottom of page) after you uncheck it!
Also, please note this plugin was tested against the
knownmethods of adding users in WordPress from script files. As soon as I learn about new ways of creating users in WordPress from outside Dashboard I will find a way to block it and update the plugin.
Needless to say, if you chance upon such a method, I would be grateful to receive the script/file you believe was responsible for creating a user, even if it looks like nonsense at first glance.
- Other plugins provide same functionality. Why is this one better?
At the time I coded this plugin, one other plugin (Disable Registration Page) existed, disabling registration page. Upon close inspection, it turned out it didn’t disable user registration, it only redirects when
actionis set to
registration. Basically, it doesn’t stop bots from creating users programmatically, it only stops humans from accessing the registration page.
From my point of view, the only effective security measure to disable unauthorised user registration is by not allowing it for any script that is not logged in with an account having the
In addition, my plugin correctly allows user registration when
"Anyone can register"is checked in Dashboard > Settings > General > Membership.
Contributors & Developers
“Disable User Registration” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?