Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: sirfpsycho - marraskuu 04, 2019, 11:52:18 IP

Otsikko: sucuri Same IP
Kirjoitti: sirfpsycho - marraskuu 04, 2019, 11:52:18 IP
hi, I am using sucuri website firewall. But I could see that users have IP and and hostname of sucuri. How can I see original IP? I contacted sucuri team and they provided me this url:
https://docs.sucuri.net/website-firewall/troubleshooting/same-ip-for-all-users/

Otsikko: Re: sucuri Same IP
Kirjoitti: sirfpsycho - marraskuu 06, 2019, 09:20:12 IP
any option bro?
Otsikko: Re: sucuri Same IP
Kirjoitti: Sir Osis of Liver - marraskuu 06, 2019, 09:29:00 IP
Just a guess, no way to test it, but IP is detected in QueryString.php.  You can try this from the link you posted -



if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{
    $_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
}

// Clean the request variables - add html entities to GET and slashes if magic_quotes_gpc is Off.
function cleanRequest()



Backup the file first.
Otsikko: Re: sucuri Same IP
Kirjoitti: sirfpsycho - marraskuu 07, 2019, 01:13:19 AP
I added before php close at the end but it doesn't work.
Otsikko: Re: sucuri Same IP
Kirjoitti: Sir Osis of Liver - marraskuu 07, 2019, 04:56:29 IP
You can't just stick code anywhere.  Try adding it where I posted.
Otsikko: Re: sucuri Same IP
Kirjoitti: sirfpsycho - marraskuu 07, 2019, 09:10:37 IP
Sorry, but I also pasted code before
// Clean the request variables - add html entities to GET and slashes

But still  same IP.
Otsikko: Re: sucuri Same IP
Kirjoitti: Sir Osis of Liver - marraskuu 08, 2019, 11:16:50 AP
You can echo $_SERVER['HTTP_X_SUCURI_CLIENTIP'] to see if it returns a value, otherwise can't be much help as I'm not running the firewall.  Only other thing I can think of is go to https://sucuri.net/ and see if they can help.