[Help] Get Users IP Address (Proxy)

Results 1 to 4 of 4
  1. #1
    Newbie Atari is offline
    MemberRank
    Sep 2013 Join Date
    NorwayLocation
    13Posts

    angry [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.


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    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'];

  3. #3
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    Grand MasterRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [Help] Get Users IP Address (Proxy)

    I made a special row ip_emu and edited ip_last to ip_emu in the emu

  4. #4
    Hakuna Matata Matata is offline
    Grand MasterRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    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)



Advertisement