This module takes the functionality of Access Rules that existed in Drupal 6 core and was removed in Drupal 7 core and makes it available for a user with sufficient permissions to easily block users with certain names or email addresses from registering.

There is not currently another module that does this on drupal.org with the only slightly similar module being user_restrictions which does not function and has not been committed to for around a year.

This module seeks to provide a simple interface and simple solution to blocking reserved usernames.

The administration page is at http://example.org/admin/people/rules

A link to the project page.
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/typhonius/1451298.git
This is a drupal 7 module.

Comments

greggles’s picture

Can you discuss how this differs from http://drupal.org/project/user_restrictions ?

If possible it would be great if you could collaborate with http://drupal.org/project/user_restrictions instead of creating a new project.

adammalone’s picture

Thanks for posting greggles.

It seems though the user_restrictions module has been updated recently which means it could work now (although I haven't checked). I made this module just before the last update of that module when enabling it caused the site it was enabled on to break.

It differs from the user_restrictions module insofar as it is pretty much just a straight port from code in drupal 6 core to drupal 7. I'm aware that the user_restrictions module attempts to go quite a lot further and implement an API for other modules to interact with it whereas this module is just implementing the same functionality that drupal 6 core had.

I'd be open to the idea of collaborating with the user_restrictions module however at the time, when the module was unusable I thought it would have been a good idea just to take a step back, not try to do anything too complex and make a simple module that would fill the gap for the functionality that people wanted in a way they remember from drupal 6.

greggles’s picture

In that case I suggest changing this to a request to co-maintain that module.

adammalone’s picture

I'm not sure I'm that skilled yet but who says a challenge wasn't a good thing!

How do I go about doing that?

greggles’s picture

Just make a post in that module's queue offering to do that :)

adammalone’s picture

Cool thanks very much. What do I do with this module application now?

greggles’s picture

Status: Needs review » Postponed

We can mark it postponed for now.

adammalone’s picture

Thanks for your help greggles!

apaderno’s picture

Status: Postponed » Fixed

I notice that typhonius is already a vetted user; I am going to call this fixed.

patrickd’s picture

Status: Fixed » Closed (won't fix)

thanks

JHBrewer’s picture

I have a slightly different problem, which probably has a trivial solution that I've been unable to find. In Drupal6 one can configure detailed access rights using Administer --> User management --> Access rules, but in Drupal7 core the only related tool seems to be Configuration --> People --> IP Address blocking. That's fine if one is looking to BLOCK an address, but I have a user I invited to apply for an account and who received the dreaded "Sorry, xxx.xxx.xxx.xxx has been banned." Now, this presumably means something in my Drupal7 config is set to ban the world by default, a familiar and (in this case) probably wise precaution, since the site is semi-private. However, I can't find a "rule tool" to ALLOW specific [ranges of] IP address[es] in Drupal7.

I need this fixed NOW; is there an alternative to installing the above-discussed module?

apaderno’s picture

Status: Closed (won't fix) » Fixed
adammalone’s picture

#11 - if someone is banned then try looking at admin/config/people/ip-blocking to unblock. Otherwise this issue should really die a graceful death.

patrickd’s picture

Status: Fixed » Closed (fixed)

If you encounter a problem with this module please create an issue here, if you encounter general problems about the drupal-core ban-module, please get support here.

This is an application, do not report bugs or problems here please.

apaderno’s picture

Issue summary: View changes

added in code tags