Forum Moderators: DixonJones
I just thought id tell you that your IP logging system doesnt seam to work. Well it does but it is getting the wrong IP address.
If anyone here is using NTL World ISP service you should know that NTL run a cache system. & guess what, your IP logger seams to be gathering the cache system IP address..
I believe im correct... I noticed this when i signed up and sore that the address you said i was wasnt me. NTL client addresses start with 82 and the address you pointed me to was a 64 address.
In PHP you would gather the right IP address by:
if (getenv("HTTP_CLIENT_IP"))
{
$ip = getenv("HTTP_CLIENT_IP");
}
else if(getenv("HTTP_X_FORWARDED_FOR"))
{
$ip = getenv("HTTP_X_FORWARDED_FOR");
}
else if(getenv("REMOTE_ADDR"))
{
$ip = getenv("REMOTE_ADDR");
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
}$ISP = gethostbyaddr($_SERVER['REMOTE_ADDR']);
The $IP would hold the correct IP address of the Client and the $ISP would hold the ISP address of the client. I hope this helps Webmaster World improve security...