Home » questions » how do you IP Ban people from you website and keep a log of how menny people went on my website with

how do you IP Ban people from you website and keep a log of how menny people went on my website with

2006-08-04 13:13:03, Category: Programming & Design
I would like to know how to IP ban and keep a log of how menny people come on because some one is causing mayham in my guess book also is there a html that i can just copy and past to ban them that way?

Answers

  1. cantankerous_bunch

    On 2006-08-04 13:21:23


    If you're running the website and you have control of your HTTP Server, like Apache httpd. You can easy control access by including the IP on the Deny list. You can also keep a log of people who visit your website if you have direct control over your HTTP server. If you do not have direct control over the HTTP server then you must ask your host to do this for you and they can ban the IP of your choosing and also keep a log going for you.
  2. rob

    On 2006-08-04 13:36:41


    Use the PHP function $_SERVER['REMOTE_ADDR'] and store the information in a database. Then, when someone opens your website, first run a check in the database table to see if that ip exists. If not, let them through otherwise tell them they're not welcome. Then, each time someone visits your site, add another tally to the database table in a column associated with that IP address.
  3. Kryzchek

    On 2006-08-04 13:19:16


    .htaccess