Originally posted by Anshul
View Post
and it should work with nginx and opera and other proxies, this it the latest function which i am using on my sites,
well,
if you dont want to have the last number in ip =0;
you can simply replace :
PHP Code:
list($ip1,$ip2,$ip3,$ip4) = explode('.',$ip);
return $ip1.'.'.$ip2.'.'.$ip3.'.0'; //REAL IP
PHP Code:
return $ip;
Leave a comment: