Another point is to remember that each page request may come from a
different IP address.
For example, where I work in IBM, every out going connection goes from one
of 30 or so boxes, each with their iwn IP, so in the process of browsing a
site each request for a file can come from one of those I
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
3 matches
Mail list logo