silverglade
03 Nov 2009, 03: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
<?php
$deny = array("65.40.108.91");
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");
exit();
} ?>
i use it at http://oddnerdrum.info on my front page.
here is the code
<?php
$deny = array("65.40.108.91");
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");
exit();
} ?>
i use it at http://oddnerdrum.info on my front page.