Block specific IP's from accessing directory

Discussion in 'Directories' started by redgsr, Aug 30, 2007.

  1. #1
    It the code below how I would block certain IP's using my .htaccess file?

    The last 2 days I have been getting thousands of "visitors" or page hits calling my rss pages but I have them disabled. Below is what they look like on my stats. My question is will blocking the IP address that they are coming from stop this?

     
    redgsr, Aug 30, 2007 IP
  2. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think if you put
    that should solve it
     
    jminscoe, Aug 30, 2007 IP
  3. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #3
    I was just about ask if this would work, thanks.

    Should I add this to the .htaccess file or robots .txt?
     
    redgsr, Aug 30, 2007 IP
  4. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #4
    htaccess file
     
    jminscoe, Aug 30, 2007 IP
    redgsr likes this.
  5. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #5
    I will give it a try - sent you + rep - thanks.
     
    redgsr, Aug 30, 2007 IP
  6. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #6
    OK, I tried what you mentioned but I am still getting tons of rss.php request. All the request are redirected to my index.php page also?

    Any other ideas to on how to block all rss.php requests would be appreciated.

    Thanks
     
    redgsr, Aug 30, 2007 IP
  7. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok how about
     
    jminscoe, Aug 30, 2007 IP
  8. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #8
    redgsr try it in your robot file
     
    jminscoe, Aug 30, 2007 IP
  9. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #9
    I tried

    in my .txt and it didn't work. It's weird I ban the IP's through Cpanel and they still get through.

    I also tried something similar to

    and it didn't work but I give this a shot.
     
    redgsr, Aug 30, 2007 IP
  10. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #10
    if that don't work pm Dawzz as he might know
     
    jminscoe, Aug 30, 2007 IP
  11. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #11
    Thanks jminscoe going to drop him a line.
     
    redgsr, Aug 30, 2007 IP
  12. speda1

    speda1 Well-Known Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #12
    A bad bot is not going to obey robots.txt

    You had the correct code in your first post:
    Put that in your .htaccess file
     
    speda1, Aug 30, 2007 IP
  13. redgsr

    redgsr Well-Known Member

    Messages:
    1,603
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #13
    From what I have been reading...

    ... is some sort of Google bot. Anyone had any experience with it? It is only accessing rss.php files that are not active.

    Edit: Wait isn't that a browser - I'm getting tired.
     
    redgsr, Aug 30, 2007 IP