Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting proxies and denying their access.

Status
Not open for further replies.

minhtam2448

Technical User
Jan 4, 2008
8
US
Hi. I've been running a little contest using a nomination form, and so far, I am suspecting someone is using a proxy to try to multi-vote. Generally, the only method I know of trying to avoid this is to ban an array of IPs, which isn't really a good idea as some innocents may be affected.

Knowing how proxies work, I know that I can't really eradicate this problem, but only suppress it. Is there a way to detect proxies and denying them access through the CGI script?
 
You should probably just make people sign up to vote.
Good proxies can completely hide themselves.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Ah, yeah, I know that much. Good proxies are really good. Kind of why the NBA All-Star ballot has millions of votes. I just want to know if there was anyway to detect and deny proxy access through a CGI script. Of course, I just want to get rid of the basic general proxies, such as AOL ones or something like that.
 
You can check the environment variable $ENV{X_FORWARDING_FOR}, as some proxies will send that and it'd contain the IP address of the person using the proxy (whereas the usual $ENV{REMOTE_ADDR} would just get the proxy IP). If X_FORWARDING_FOR exists, they're using a proxy.

-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top