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
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
$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
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.
4 matches
Mail list logo