View Full Version : great script for banning ips on your website

03 Nov 2009, 04:24 PM
hi i came across this script, you just put your ip instead of the ip i have there, and paste the code into your document, and bingo, you have ip banning functionality. yay! separate the ips by commas

here is the code

$deny = array("");
if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {
echo("hello there , you have attempted to hack my login page , and have been banned permanently from my website. thank you. derek");

} ?>

i use it at http://oddnerdrum.info on my front page.