Hey quick question, I am wondering
- Do big sites use php's getenv function to prevent proxy users from registering or signing in?
- Is it effective in deterring hac开发者_如何学Ckers from creating a bunch of accounts for abusive purposes if it is used?
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.
精彩评论