Scarface Scarface - 22 days ago 6
PHP Question

Is it standard to check for proxies with getenv and is it effective?

Hey quick question, I am wondering


  1. Do big sites use php's getenv function to prevent proxy users from registering or signing in?

  2. Is it effective in deterring hackers from creating a bunch of accounts for abusive purposes if it is used?


Answer

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.