How to block a site abuser

Discussion in 'Site & Server Administration' started by giorgioarmani, Jan 31, 2009.

  1. #1
    I have this one visitor abusing one of my sites...

    How can I permanently block them?
     
    giorgioarmani, Jan 31, 2009 IP
  2. Tearabite

    Tearabite Prominent Member

    Messages:
    4,629
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #2
    It's hard to say exactly, not knowing much about your site....

    My site is built on Drupal, and i use a few different methods:
    1) block the account - the user can no longer log in with the account he created
    2) Ban the IP(s) he uses. I do this with the Drupal Troll module, but you can also do it in your .HTACCESS file

    This works good until he starts using a proxy. For blocking proxies i use BadBahvior, which will block SOME proxies, and I also have a list of over 1,000,000 proxies and compromised servers that I block at the firewall - this makes it quite a chore to find a proxy that will work.. THEN, when he raises his head, I block that account and the new proxy he was using. Eventually they get bored and go away..
     
    Tearabite, Jan 31, 2009 IP
  3. giorgioarmani

    giorgioarmani Well-Known Member

    Messages:
    2,634
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks T!

    Basically it's a custom site, no script but it's packed with contact forms and effectively this user is spamming the contact forms.

    So if I trip block him by IP, How can I deny him access by .htaccess?
     
    giorgioarmani, Feb 1, 2009 IP
  4. DaZeD

    DaZeD Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can block an ip in your .htaccess file like so:

    order allow,deny
    deny from xxx.xxx.xxx.xxx
    allow from all
    Code (markup):
    Just replace xxx.xxx.xxx.xxx with his ip. As Tearabite said though, he may decide to get around it by using a proxy.
     
    DaZeD, Feb 1, 2009 IP
  5. giorgioarmani

    giorgioarmani Well-Known Member

    Messages:
    2,634
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Ok thanks guys I will try this!
     
    giorgioarmani, Feb 1, 2009 IP
  6. NickR25

    NickR25 Peon

    Messages:
    394
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Blocking via .htaccess is probably the best method; but nothing is stopping him from using a proxy.
     
    NickR25, Feb 1, 2009 IP