Dynadot

[Resolved] PHP help needed

Spaceship Spaceship
Watch
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
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
•••
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
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back