Automatic Ip blocking after presified number of hits

Discussion in 'PHP' started by yessine, Jan 8, 2011.

  1. #1
    dear,

    am looking for php code who can block ip that access on my site more then 100 times per hour

    or any time frame and number of hits that i select them

    ofcorse the blocking will be through .htaccess

    thanks all in advance
     
    yessine, Jan 8, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    automatic blocking will not work with htaccess, you can hire me to write a piece of script that uses a database to check number of visits from a current user by ip and or hostname.

    If you want that, please contact me!
     
    EricBruggema, Jan 9, 2011 IP
  3. yessine

    yessine Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    but how you will block them ?
    buy redirecting to empty page ?
    and how much it cost me this job ?
     
    yessine, Jan 9, 2011 IP
  4. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #4
    you can either redirect him to an empty page, or recreate the htaccess file, with a ban on his ip.
     
    ssmm987, Jan 9, 2011 IP
  5. yessine

    yessine Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    can you do this work ?
     
    yessine, Jan 9, 2011 IP
  6. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #6
    Sure, should be easy.
     
    ssmm987, Jan 9, 2011 IP