Reply to Re: PHP IP blocking script is not working...

Your name:

Reply:


Posted by Franoise Debat on 01/24/07 11:52

Arjen wrote:
> 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();
> }
>
>

I'm sorry, I don't understand why, but this solution (none in this
thread) solved the problem.

Thanks for the help anyway though :)

Françoise

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация