Liam Delahunty: Home | Tips | Web | Contact |
---|
Recommended laptop
under £500. Think I deserve a present? See my Amazon Wish List |
Ban Access from an IP address with PHPIn the war against terror, or at least against spam bots that index pages and/or attempt to send hundreds of comments using forms, I've created this simple check to inhibit their access of the site. I include this on every page at the very top before anything else is printed. Sending the bot a 404 will hopefully de-index the page in the long term, but I wouldn't hold my breath.
See also PHP gethostbyaddr and PHP checkdnsrr. Share this! |