SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't Seem To Block And IP

    Hi

    I am having issues blocking an IP, it's banging away at my site daily under different IP's. I want to block a range now. Each day I am adding new IP's from the same spammer into the database, they obviosuly have a massive range.

    Todays IP is : 88.135.85.82

    I've tried

    deny from 88.135.85.
    deny from 88.135.85
    deny from 88.135.0.0
    deny from 88.0.0.0/8

    For the last one I used http://whois.arin.net/rest/net/NET-88-0-0-0-1/pft to find the ranges.

    Can anyone help

    Thanks very much...

  2. #2
    Twitter: @TimIgoe silver trophy TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,056
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Order Deny,Allow
    Deny From ....

    If i remember rightly, the default is Order Allow,Deny

    i.e. its allowed before its blocked

  3. #3
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TimIgoe View Post
    Order Deny,Allow
    Deny From ....

    If i remember rightly, the default is Order Allow,Deny

    i.e. its allowed before its blocked

    It's all set up fine I think

    SetEnvIfNoCase User-Agent "^Black Hole" bad_bot

    <Limit GET POST>
    order allow,deny
    allow from all
    deny from env=bad_bot

    deny from 88.135.85.82
    deny from 88.135.85.13
    deny from 88.135.0.0/20
    deny from 88.135.48.0/20

    </LIMIT>

    It seems to be stilll getting through. I've not restarted the server tho, but I didn't think you had to.

  4. #4
    Twitter: @TimIgoe silver trophy TimIgoe's Avatar
    Join Date
    Feb 2005
    Location
    Blackpool, UK
    Posts
    1,056
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    LIMIT GET,POST rather than space

    Equally, they aren't needed as such in a htaccess, you can do just the commands for order etc.

  5. #5
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TimIgoe View Post
    LIMIT GET,POST rather than space

    Equally, they aren't needed as such in a htaccess, you can do just the commands for order etc.
    Okay. Will see if that makes a difference. Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •