[PHP] IP security

2001-08-25 Thread nafiseh saberi
hi. how can I control the ip that with ID and password ,all of user cant enter to site and if one person want to enetr should have special IP that I know it. thanks. nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] IP security check

2001-08-08 Thread Tom Carter
IP's. - Original Message - From: "matt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 9:37 PM Subject: [PHP] IP security check > For secure payment pages, I need for the code to determine the persons IP > address, even if they

Re: [PHP] IP security check

2001-08-07 Thread René Moonen
Try this code: if(getenv("HTTP_X_FORWARDED_FOR")) { $ip=getenv("HTTP_X_FORWARDED_FOR"); } else { $ip=getenv("REMOTE_ADDR"); } $host = gethostbyaddr($ip); And check out http://www.php.net/manual/en/function.getenv.php However, I think it is very unsafe to base your payment transactions on

Re: [PHP] IP security check

2001-08-07 Thread Tyler Longren
$REMOTE_ADDR will give you the user's IP...it can't get the "un-spoofed" ip though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 7 Aug 2001 15:37:09 -0500 "matt" <[EMAIL PROTECTED]> wrote: > For secure payment pages, I need for the code to determine

[PHP] IP security check

2001-08-07 Thread matt
For secure payment pages, I need for the code to determine the persons IP address, even if they have a "spoofer" running. Is this possible? Getting around the spoofer in order to catch criminals using illegal credit card #'s.. thanks -matt (cs student) -- PHP General Mailing List (http://www.