QA.TechInterviews.com - your tech questions answered
How Do You IP Ban People From You Website And Keep A Log Of How Menny People Went On My Website With
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?
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.
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.
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.
.htaccess

Back to QA. TechInterviews.com. Powered by Yahoo! Answers and TechInterviews.com community.