View Single Post
Old 01-11-2008, 06:30 PM   #1 (permalink)
karthikeyan
Field Master
 
karthikeyan's Avatar
 

Join Date: Jun 2007
Posts: 621
iTrader: 0 / 0%
Hunter Bux: 509.00
karthikeyan is on a distinguished road
Send a message via MSN to karthikeyan Send a message via Yahoo to karthikeyan
Default Ban IP in php script

This is the script which bans multiple ip's

PHP Code:
<?php
$ip 
= (array) $_SERVER['REMOTE_ADDR'];
$blocked = array('xx.xx.xx.xx','xx.xx.xx.xx');
if(
in_array($blocked,$ip))
{
die(
'You have been banned!');
}
?>
__________________
--------


The Technology Guide
karthikeyan is offline   Reply With Quote