Is there a module to prevent inappropriate user names?
thanks,
mike

Comments

VM’s picture

administer -> access rules may be the place to handle this type of request

BryanSD’s picture

That's a great idea and not something I would have though of on my own. Though, I wonder how it would work with a username authenticating with openID?

Honestly, someone using an inappropriate name hasn't been a big issue for me. More common is user ffrgftk that some other random username entered by the spam bots. Though that has been rare too since Mollom entered the picture.

-Bryan

hoopslave’s picture

would I need to add a seperate rule for all the possible bad names? I found a module called Abuse, but the abilty to set up rules is still in devlopment. My site will have kids, so I don't want bad names to be visable.

VM’s picture

as far as I know yes.

another option would be to admin create the usernames you don't want to be used and block those accounts. Users trying to get those accounts get handed back a username already taken message.

Though playing devils advocate here, younger users are pretty ingenious about screenname create and getting around filters and such.

an interetsing one I've seen within the past few days = FAAQ

bwv’s picture

Then there's the one I saw on a license plate recently:

QQQQ

----------------------------------------------------------------------
http://classicvinyl.biz
http://music.bwv810.com
http://davidhertzberg.com
http://association.drupal.org/user/1207

I am a writer, researcher and solo drupal freelancer

Barrett’s picture

It should be easy enough to write one of your own. I haven't tried, but the code below should get you most of the way there.

function cleannames_user($op, &$edit, &$user, $category=NULL)  {
  $dirty_names_array=array('badname1','badname2','etc');
  switch($op) {
    case 'validate':
      if(in_array($edit['name'], $dirty_names_array)) {
        form_set_error('name',t("Ooh, that's a dirty word.  I'm telling."));
      }
  }
  return;
}
hoopslave’s picture

thanks. I'm not that saavy w/ Drupal yet and am clueless with PHP. I think I'll just keep my eyes open and wait for the Abuse module to upgrade.