I'm setting up a private website which should only allow users with an email from a certain domain(s) to register.

For example if happyuser.com is allowed then bob@happyuser.com will be able to register but marv@evilspammer.net won't. Can you tell me if a module exists with this functionality? I've had a search but I cant find any.

If not I'm thinking of developing my own with the following features:

Domain whitelist (as described above)
Domain blacklist (e.g. for hotmail)
Subdomains (allow/block bob@un.happyuser.com?)
Pattern matching on each (happyuser./com|net|org/)

Any comments/suggestions?
Cheers

Comments

Anonymous’s picture

hi, i like your idea. but there should be something in between black and white, for example whitelist can register without super user authorisation and black list is out. all the others have to wait till the administrator puts him "active"

albinohawk’s picture

Doh! Just realised this functionality already exists in Drupal under the access_control > access rules..

bjorpe’s picture

I'm looking for this functionality, but using a list of *exact* adresses, in a text file.

I figured this would be a simple way to let existing (paying) members of an organization sign up for the site. I do not want to integrate the members database with the site, just do regular checking by rendering a whitelist.

Does anyone have a suggestion?

kimliv’s picture

hi, as subject says i cant find this function in drupal 7. Do you have drupal 6 or a modul?

if not can u send me a path?

thx

kimliv’s picture

Here is a module for drupal 7: http://drupal.org/project/useremaildomain