This topic is locked
[SOLVED]

 IP Restriction

10/5/2005 11:28:23 AM
PHPRunner General questions
S
sskumar1 author

Hi,

I wan't to add addtional security to a web page by restricting with the IP address. I have a table with IP address of each username. I was wondering if anyone knows how to do this??. Thanks.

  • kumar

admin 10/6/2005

Kumar,
the IP address of a website visitor is contained in $_SERVER["REMOTE_ADDR"] variable.
So you can check it against your table data.