|
Posted by Arjen on 01/24/07 09:39
Françoise Debat schreef:
> Hello,
>
> I wonder if anybody can help. I have an IP blocking script which
> displays a blank screen if an IP is detected from a list in an external
> file. The problem is, the script only reads the last IP¨in the file, not
> every one. Can somebody tell me where this is going wrong?
<snip long script>
$banned_list = file($file)
if (in_array($_SERVER['REMOTE_ADDR'], $bannedlist))
{
echo "This website is currently unavailable";
exit();
}
--
Arjen
http://www.hondenpage.com
Navigation:
[Reply to this message]
|