-
Newbie
[Help] Get Users IP Address (Proxy)
Hello there.
I use a RevCMS on my virtual server. The server has a Proxy that hides the IP and whenever I look in the database on the ip_last and ip_reg in the users table I can only see my Proxy IP that helps me hiding the real IP address of my website.
Is there anyway I can be able to unlock this so the users IP address gets logged and not the Proxy IP?
And whenever if I should IP ban a person, I ban everyone on the website because of the Logged IP address.
Thanks,
Atari.
-
-
Check http://arcturus.pw
Re: [Help] Get Users IP Address (Proxy)
use var_dump($_SERVER); to see any variables. Do it on a page that nobody visits.
It should output something like [variable] => 'value'
Find the one that matches your real IP it should be something like FORWARDED or something.
After you've found that you can use that for the queryies: $_SERVER['variable'];
-
LETS REACH 666 POSTS?!!!!
Re: [Help] Get Users IP Address (Proxy)
I made a special row ip_emu and edited ip_last to ip_emu in the emu
-
Hakuna Matata
Re: [Help] Get Users IP Address (Proxy)
I think it's called x-forwarded-to but I'm not sure. It returns the real IP but it can easily be bypassed that's why it's normally not used. Also, make sure to filter it (or else people can use SQLi)