To get ASN of IP you can exec command: whois -h "216.90.108.31" |grep -v 'AS |'|grep -v whois.cymru.
To convert the IP risk score to its approximate proxyScore, divide the IP risk score by 25. The proxyScore is replaced in our current minFraud services by the IP risk score, which ranges from 0.01-99. If the ASN are equal, then user is behind a ISP that has weird to redirect web traffic through a different. The proxyScore is an output from our legacy proxy detection web service and ranges from 0.00-4.00. I would also suggest to fetch AS number for both IP and if both IP ASN are not same then for sure the user is abusing Such scores typically represent medium risk. So, on the server you should wait a message and record remote IP by flash and then compare this to your IP REMOTE_ADDR and if not equal the user is likely behind a firewall. We will be returning more proxyScores between 0 and 1.8 and 1.8 and 3. Your best chance is to fetch IP address related to AS number and IP range related to them and block the entire ip space in your web server or redirect them to your specific web server.Īnother best approach to identify users who are using internet proxy is to use Flash's P2P available in Flash as RTMFP protocol and can be used with for example (see also ). You are also blocking many user who use Web proxy in their legitimate network such as university campus or government agencies who have strict web surfing policy. Learn more about the proxyScore (called the IP Risk Score in current minFraud services) on our Support Center. There is no clear standard to classify users behind VPN or Web Proxy server simply by HTTP headers, The proxy detection web service provides a score measuring the risk associated with an IP address. So, my second question is that does HTTP_X_FORWARDED_FOR really returns false positive? Or is it because ngrok is also using proxies that I could not access my site through even I was on my direct connection? Is it completely okay to use HTTP_X_FORWARDED_FOR or not? Any prose or cons you see in this script please tell me. Proxy Detection 263 Alternative solutions: You can also look at trying some of the fraud- scoring services that offer the proxy detection check as part of. I tried to remove this and wooo, no more detecting proxies on hidemyass or other. Now my question is that is ngrok also using a proxy server due to which it blocked me from access? And I read someone's comment that HTTP_X_FORWARDED_FOR returns false positive for his internet direct connection.
This is what I wanted in case of hidemyass type proxy sites. I tried with hidemyass and one another proxy detector and I got the same result. Then I tried accessing my localhost website through ngrok and it blocked me from viewing it returning "You are using a proxy!". If (isset($_SERVER)) die("You are using a proxy!") I want to integrate a good proxy detector script on my site.