Restrict Usernames
- Author:Scott Reilly
- Version:2.0
- Last update:21 Jan 2010
- Compatibility:WP 2.8+, 2.9+
- Comments:go here
- Download:[ zip ]
- Description:
Restrict the usernames that new users may use when registering for your site.
-
Extended Description
Restrict the usernames that new users may use when registering for your site.
If open registration is enabled for your site (via Settings → General → Membership (“Anyone can register”)), WordPress allows visitors to register for an account on your blog. By default, any username they choose is allowed so long as it isn’t an already existing account and it doesn’t include invalid (i.e. non-alphanumeric) characters.
Possible reasons for wanting to restrict certain usernames:
* Prevent usernames that contain foul, offensive, or otherwise undesired words
* Prevent squatting on usernames that you may want to use in the future (but don’t want to actually create the account for just yet) (essentially placing a hold on the username)
* Prevent official-sounding usernames from being used (i.e. help, support, pr, info)
* Prevent official username syntax from being used (i.e. if all of your admins use a prefix to identify themselves, you don’t want a visitor to use that prefix)When attempting to register with a restricted username, the visitor will be given an error notice that says:
ERROR: This username is invalid. Please enter a valid username.NOTE: This plugin does not put any restrictions on usernames that the admin chooses for users when creating user accounts from within the WordPress admin. This only restricts the names that users choose themselves when registering for your site.
Find out more at the plugin’s WordPress Plugin Repository page.
-
Screenshots
Click to see full-size image.
Installation
- Unzip ‘restrict-usernames.zip’ inside the ‘/wp-content/plugins/’ directory for your site (or install via the built-in WordPress plugin installer)
- Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Go to the Users -> Name Restrictions admin settings page. Specify username restrictions.
-
Frequently Asked Questions
-
Q: So if I restrict a username from being registered, does that mean that username can’t be used?
A: No. The plugin only prevents the usernames visitors can use when registering for an account. An admin that has user creation privileges can still create a user account, from within the admin, using any otherwise valid username. Username restrictions don’t apply to admins.
-
Q: Does this plugin provide any default username restrictions?
A: No.
-
Release Log
- 21 Jan 2010 : v2.0 — Release Notes. Highlights: support for disallowing spaces in usernames; support for requirement of substrings within usernames; support for localization; support for WP 2.9+, dropped support for versions of WP older than 2.8
- 29 Jul 2009 : v1.1 Highlights: added ‘Settings’ link to plugin’s plugin listing entry; noted WP2.8+ compatibility
- 01 Apr 2009 : v1.0 — Initial release
Copyright & Disclaimer
Copyright © 2008-2010 by Scott Reilly (aka coffee2code)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

