Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Showing host ip
#1
Not Solved
This user has been denied support. This user has been denied support.
hello..
Recently i installed Google SEO plugin in my forum and after that i noticed "Who's online" showing all the users the same ip of host. I tried changing "Scrutinize User's IP address?" to Yes and No but it didn't worked.! I also tried uninstalling google seo plugin but the result was same.
PLease help.!
#2
Not Solved
Are you saying it's all showing up as your hosts IP? Are you using CloudFlare?
#3
Not Solved
This user has been denied support. This user has been denied support.
yes. not using cloudflare.
#4
Not Solved
Google SEO plugin has nothing to do with display of IP address. contact your web host.
#5
Not Solved
This user has been denied support. This user has been denied support.
i have installed cloudflare one month before and its deactivated and uninstalled.
No problem was there before 3 or 4 days..its happened recently.
#6
Not Solved
^ still, it should be a web host related issue. if you need, PM me temporary access to admin panel to check.
#7
Not Solved
This user has been denied support. This user has been denied support.
contacted webhost , they told me its due to NGINX also they gave me some codes to fix it.
function fetch_ip()
{
if(isset($_SERVER["HTTP_X_REAL_IP"]))return $_SERVER["HTTP_X_REAL_IP"];
else return $_SERVER['REMOTE_ADDR'];
}

function fetch_alt_ip()
{
if(isset($_SERVER["HTTP_X_REAL_IP"]))$alt_ip = $_SERVER["HTTP_X_REAL_IP"];
else $alt_ip = $_SERVER['REMOTE_ADDR']; #$alt_ip = $_SERVER['REMOTE_ADDR'];

if (isset($_SERVER['HTTP_CLIENT_IP']))
{
$alt_ip = $_SERVER['HTTP_CLIENT_IP'];
}
else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) AND preg_match_all('#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#s', $_SERVER['HTTP_X_FORWARDED_FOR'], $matches))
{
// make sure we dont pick up an internal IP defined by RFC1918
foreach ($matches[0] AS $ip)
{
if (!preg_match('#^(10|172\.16|192\.168)\.#', $ip))
{
$alt_ip = $ip;
break;
}
}
}
Where should i add this.?
#8
Not Solved
function get_ip() is defined in ./inc/function.php file. it needs to be modified. (also see this)
however it needs to be done by an experienced person
#9
Not Solved
This user has been denied support. This user has been denied support.
is there anybody who can help me.? Smile


Forum Jump:


Users browsing this thread: