9
Whether XOOPS correctly identifies an NTL user's real IP address or just their NTL proxy server, depends on the script it uses (of which I have not a clue). However, the good folks over at the 'unofficial' NTL forum at
http://www.chetnet.co.uk helped me resolve a similar issue recently.
The following script reveals the user's real IP.
function getIP()
{
$ip;
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 = 'UNKNOWN';
return $ip;
}
You can then display the user's IP with:
echo getIP();
As a double-check, to quote Chetnet member Chris W.
Quote:
just to double check which one you are blocking, you can do an nslookup on the ip->
something in this form:
Name: cache2-bstl.server.ntli.net
Address: 62.255.0.xx
is a proxy... whereas if it looks like this:
Name: cpc1-cosh5-3-0-custxxx.cos2.cable.ntl.com
Address: 81.102.84.xxx
it is an individual user
Hope this may be of some help.