if(getenv('REMOTE_ADDR')==$my_IP)
$LetMeIn = 1;
else
unset($LetMeIn);
Cheers,
Maxim Maletsky
-Original Message-
From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 8:31 AM
To: PHP Mailing List
Subject: Re: [PHP] Restrict acc
Karl J. Stubsjoen wrote:
> Okay, last one for the day! How do you query the clients IP address?
> We have a site in development, and I want to restrict access to
> people coming in from certain IP addresses.
> Really, all I need to do is query the IP address, I can code the rest
> of it.
$remot
be Careful using the IPAddress as a primary security measure.
If the client has accessed your site through a proxy, then the IP Address
shown will be the IP Address of the proxy. While you can use
X_FORWARDED_FOR (or something similar,c ant remember off the top of my
head :p ) to determine the req
Run
on a page. You will be able to see all of the available environment variables
avaliable to you, one will tell you the client IP address.
Michael
"Karl J. Stubsjoen" wrote:
> Okay, last one for the day! How do you query the clients IP address? We
> have a site in development, and I wan
4 matches
Mail list logo