Getting IP address behind proxy

They have: 7 posts

Joined: Jun 2004

I've been wondering how some sites like dyndns.org are able to see ip behind proxy. I'd like to be able to see ip like this also, because I'm developing banning system to my site and I would like to see behind proxy so I could ban specific IP and not whole proxy.

Any ideas?

- Keripukki

Veter's picture

He has: 18 posts

Joined: Jul 2004

With php:

Proxy server: getenv("HTTP_VIA")
IP: getenv("REMOTE_ADDR")
HTTP_X_FORWARDED_FOR: getenv("HTTP_X_FORWARDED_FOR")

They have: 7 posts

Joined: Jun 2004

Thanks for answer, but those didn't work. I tried echoing them but only REMOTE_ADDR worked and it printed my proxy address. Is somekind of special configuring required for Apache settings?

Strange thing is, that Dyndns.org's site can see my IP behind proxy.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.