Hey quick question, I am wondering
There is no 100% effective way to determine whether a given user is utilizing a proxy or not. It's generally fairly ineffective to try - plus you'll block many legitimate users in the process.
I don't believe getenv would be helpful at all in doing this (unless combined with some ugly flash applet). getenv() returns the remote address that's directly connected to the webserver (I think), which may or may not by the user's IP (i.e. they could be behind a NAT). I also don't believe this would be effective at all to prevent people from using proxies.