1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to check for visitors using hidemyass.com?

Discussion in 'Other Languages' started by tb303, Aug 9, 2013.

  1. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    I have a site that seems to get a lot of visitors from hidemyass.com and newip.com. The site has adsence on so it worrys me a bit.

    I tried redirecting them based on referrer in php but $_SERVER['HTTP_REFERER'] is blank.
    Yet if install the histats java tracker on there it shows the correct referrer.

    So how is their java code getting the correct referrer when the php referrer is coming up blank?

    If thats questions a bit vague then whats the best way to look at the .js file it uses?

    cheers
    tb
     
  2. satyr85

    satyr85 Power Member

    Joined:
    Aug 7, 2011
    Messages:
    580
    Likes Received:
    444
    Location:
    Poland
    You just want to check them or block them?
     
  3. Bruut

    Bruut Regular Member

    Joined:
    Aug 9, 2012
    Messages:
    227
    Likes Received:
    149
    Cant you just block proxies ips from site?
     
  4. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    either block or redirect them, whatever, thats not the problem. Its identifying them thats the problem.

    a list of ip's would do it and that was what i was originally going to try. but i noticed the histats counter showing "hidemyass.com" as the referrer. which made me wonder is there another way.

    an ip list would need updating all the time and i'd rather not get into that. especially as theres a load of web proxies out there.

    a way to see the previous page in the browser history would be something but i doubt thats possible as it would be a big security flaw.
     
  5. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    601
    Likes Received:
    280
    answering my own question incase anyone else comes this way...

    first page checks the referrer using PHP and if its empty does a header redirect to another page that contains javascript something like this...
    Code:
    <script>
    if (document.referrer.indexOf("sitetoblock.com") > 0 
    {
    ...do something...redirect or whatever...
    }
    </script>
    seems to work. if anyone has a better solution then id love to hear it :)
     
  6. Taff_Man

    Taff_Man Junior Member

    Joined:
    Oct 28, 2012
    Messages:
    119
    Likes Received:
    19
    Location:
    Dark Side of The Moon
    Looks like somebody is sending a lot of traffic to your site using a VPN.