View Single Post
Old 01-12-2008, 10:31 AM   #4 (permalink)
stackhacks
New Hunter
 

Join Date: Aug 2007
Posts: 56
iTrader: 0 / 0%
Hunter Bux: 0
stackhacks is on a distinguished road
Default

If you're not having much luck with the first one, here's an alternate source:

Code:
<?php

//Set banned IP
$banned  = '123.123.123.123';

//get user IP address
$userip = $_SERVER['REMOTE_ADDR'];

//check for banned IP address
if($userip == $banned){ 
    echo "<BR>This IP address has been banned";
    exit(); 
}

//continue with script...

?>
stackhacks is offline   Reply With Quote