NameSilo

[Resolved] PHP help needed

SpaceshipSpaceship
SpaceshipSpaceship
NamecheapNamecheap
Watch

Joeydabomb

Established Member
Impact
0
PHP help needed

Is it possible to find a users ip if they use a proxy?

Say the sign up on a site using proxies to avoid ip bans... would you be able to find there real ip and ban them?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
if the person is using a proxy then it is possible to check their ip using $_SERVER['HTTP_X_FORWARDED_FOR']. This only contains an ip if a proxy is used.

However anonymous proxies for example do not use the necessary header so $_SERVER['HTTP_X_FORWARDED_FOR'] would not contain anything and unfortunately there is no other way of checking using php.
 
0
Close
filth@flexiwebhost said:
if the person is using a proxy then it is possible to check their ip using $_SERVER['HTTP_X_FORWARDED_FOR']. This only contains an ip if a proxy is used.

However anonymous proxies for example do not use the necessary header so $_SERVER['HTTP_X_FORWARDED_FOR'] would not contain anything and unfortunately there is no other way of checking using php.
What Peter said ;).

However It is possible to ban the proxy itself. If you notice a large amount of traffic running to or from one IP, this could be a proxy being used by multiple people to view your site.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back