tags:

views:

73

answers:

3

Please let me know how to detect whether a user is behind a free web proxy?

A: 

Unless you have an exhaustive list of every free web proxy you cannot (and more are being added every day)

Can you tell us more of what you are trying to do? Maybe we can find another way to help you.

LeonixSolutions
I do know that facebook does not allow user behind a proxy. I just wanted to know how they did it. Plus, I only want legitimate users, not faked users.
Mark Attwood
Facebook doesn't allow many common proxies, but there are many that can still get through. It's not an exact science.
Amber
@mark - most corporates will be using a proxy, yet the staff will still be able to reach FB. You might find that it is the *proxy* preventing the access to FB, rather than FB detecting that you are coming though a proxy.
slugster
+1 to slugsters comment - Most companies that i have worked with implemented security at their web proxy servers to disallow traffic from social networking sites - sometimes between X AM - Y PM only - I am not aware of facebook practively doing anything (but this was in their pre - privacy hullabaloo days)
InSane
+1  A: 

You basically need a database of all known web proxies. If you want this because you want to disallow access for users behind a proxy, I would say it's a waste of time. New proxies come up all the time and it's difficult to maintain a database that is up-to-date.

casablanca
A: 

I don't know much about proxy servers, but I was under the impression that you could check the X-FORWARDED-FOR field in the HTTP header.

mrduclaw
check it against what?
LeonixSolutions
Sorry, I assumed he wants to know if people are coming to his site via a proxy server. So, you check if that field exists since I believe it is added by proxy-servers like Squid.
mrduclaw