User restrictions blocks users from registering or logging in based on name or email masks making it useful for fighting spam accounts. E.g. If it is undesirable to have users registering with a hotmail email address, they may be denied with a pattern. This module is a drop-in replacement (with some enhancements) for the 'access rules' functionality which was removed from Drupal 7 [1].

The Drupal 7 module implements an API and custom hooks that allow third-party modules to add additional restrictions, or implement new type of restrictions. The Drupal 8 version implements the plugin system to allow custom user restrictions to be created above and beyond the name, email, and IP plugins included.

Version notes

  • The Drupal 7 version will have no new features and development on that version will consist only of bug fixes.
  • There will be no releases for Drupal 5 or Drupal 6. If you're looking for this functionality in either of those versions, try admin/user/rules. You are most likely to need this module if upgrading from Drupal 6.x or earlier with existing access rules in place. A stripped down version of IP address blocking was left in core [2], so this module will focus on usernames and e-mail addresses. Third-party modules can implement additional restrictions using the API exposed by the module.
  • Updating from a different release of the development snapshot is not supported. To install a newer development snapshot, you always need to uninstall the previous version before copying the new one.
  • Development snapshots are intended for testing only. Don't use them in a production site, or for other purposes. If used in a production site, or for other purposes, there will be no support for any resulting problems.

[1] Issue: http://drupal.org/node/228594
[2] http://api.drupal.org/api/function/drupal_is_denied/7

Supporting organizations: 
Sponsored development time.

Project information

Releases