You are here: Re: PHP ban script « All PHP « IT news, forums, messages
Re: PHP ban script

Posted by Geoff Berrow on 05/08/06 09:22

Message-ID: <flmt5213gdjtsoa0f9g0671cahmr8b70to@4ax.com> from Shaun
contained the following:

>>I came across a php script on the net that will compare a web surfers IP
>>address to those in a text file. If a match or partial match is found, the
>>user is banned from accessing the php script, but if no match is found, the
>>php script executes.
>
>For starters, this is something that would be much more efficient if
>it were using a database as opposed to a group of text files. I
>mention this primarily because you do seem to be concerned about
>efficiency.

For seconds, it is assuming that IP is a unique identifier. It isn't.

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

Navigation:

[Reply to this 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

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