Rating: 4 stars
I like the idea behind this plugin and have tested it out on a demo site.
If you could, I would love it if this were updated to fit the most current version of WordPress; and if possible, if there were some way to add a few options (such as geolocation).
]]>Rating: 5 stars
I used to request my clients’ to go to chromeis.com/myip when tracing them. Now I ask them to check my own site
]]>Rating: 5 stars
Hi SVCROB,
Thanks for your code but howcome it’s working good for me?
Anyway, looking for demo, here is a link:
https://chromeis.com/myip
[ Signature moderated. ]
]]>Rating: 4 stars
There is a problem looking up IP addresses that are behind a proxy. The following update to the “display_user_ip” ensures that you get the correct IP address even if it is behind a proxy.
]]>// shortcode [user_ip]
function display_user_ip()
{
$user_ip = $_SERVER[‘REMOTE_ADDR’];
$proxy = $_SERVER[“HTTP_X_FORWARDED_FOR”];
if(ereg(“^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$”,$proxy))
$user_ip = $_SERVER[“HTTP_X_FORWARDED_FOR”];
return $user_ip;
}