Forums

Is there a way to prevent registration based on domain? (4 posts)

  1. Boxav8r
    Member
    Posted 5 years ago #

    I have (what I believe to be a bot) that registers to my blog frequently. The nature of my board is relativley private. There are 4700 people who could be legitimately posting. In an effort to make it easy and fast for them, I set it up so registration automatically gives author priv's.

    Up until now, I've only had to delete about 3 users over 8 months. Now comes a user with the same 'mail.ru' domain that keeps registering, but has no legitimate purpose on my board.

    Is there a way to prevent all registrations from an email address with a given domain? In the interim, I have left this user (this time) and just lowered privileges to 'subscriber.'

    Thanks in advance for any help.

    Pete

  2. Chris_K
    Member
    Posted 5 years ago #

    Nothing really built-in to WP for that.

    One option would be to search for tips on blocking IPs via .htaccess.

  3. Boxav8r
    Member
    Posted 5 years ago #

    Will try the htaccess route. Used to be a frontpage website - so there's lot's of htaccess files laying around. Will have to learn some more about this so I don't goonmy site.

    I am now on my own server in my basement - so "uninstalling" Frontpage Extensions is not an option.

    While I am at it though - can someone tell me about the "order" in htaccess...

    I have seen
    deny,allow
    deny all
    allow all

    and vice versa.

    Can you have
    deny all
    allow all
    deny 255.255.255.255

    I guess I am asking for basics of the rules with regards to htaccess files. If not an explanation here - then a link to a good primer.

    Thanks,
    Pete

  4. webprofessor
    Member
    Posted 5 years ago #

    I put together a plugin last night to blacklist user registration based on the domains their email is from. Hope it helps.

    Post here:
    http://web-professor.net/wp/2007/01/14/new-wordpress-plugin-ban-email-domains-from-user-registration/

    Download here:
    http://web-professor.net/shared/wp-plugins/registration_blacklist.zip

Topic Closed

This topic has been closed to new replies.

About this Topic