Need Help With Ip Blocking

Discussion in 'Site & Server Administration' started by bekkin, Feb 25, 2008.

  1. #1
    what I am trying to do is block an ip after they go to my website, so once a person comes across my site has a look around or even just one page, and then leaves they are blocked and cannot come back a second time. so basically A log would be made with all the user ip's that hit my website that become blocked. I have tried to have a look around on the web but haven't had much luck.

    I am not a programmer and usually just try to pick it up as I go along, any help would be much appreciated.
     
    bekkin, Feb 25, 2008 IP
  2. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are using Cpanel go to

    Cpanel > Ip Deny Manager... to add the Ip you want to block (This feature will allow you to block a range of IP addresses to prevent them from accessing your site. You can also enter a fully qualified domain name, and the IP Deny Manager will attempt to resolve it to an IP address for you. )
     
    ikwee, Feb 25, 2008 IP
  3. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #3
    I don't see any *ready* automated script can do for you. You might want to hire someone to write for you. IPtables or IP Deny Manager mentioned above require you do it manually, and you will need to have the IP list in hand
     
    gate2vn, Feb 25, 2008 IP
  4. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    You can do this using some simple perl scripts that will run a system command to block the ip and also get the ip address through some environment variables.
     
    maestria, Mar 1, 2008 IP