detect internal & proxy ips?

Started by cotdagoo, October 15, 2005, 12:13:11 PM

Previous topic - Next topic

cotdagoo

I've searched and found a couple pretty old threads regarding the ability for SMF to detect whether the user is using a proxy - but nothing ever seemed to come of it.

I've been having problems with a few banned users coming back with proxy ips and creating fake usernames. I've been dilligent in figuring which ones are fake, but I'd hate to make a mistake and remove legit accounts. I know the php code to grab both proxy (REMOTE_ADDR) & home ip (HTTP_X_FORWARDED_FOR) - but Im not sure where to try and implement this so I can easily check from a users profile if they are behind a proxy (with a banned ip). Ideally it would be nice to gather this information when someone registers, as well as keep an eye on things via the Track User/Track IP feature.

Is there anyone else who would find something like this handy? There was a good phpBB mod called CCIP I used before jumping ship to SMF, but I wouldn't want to go back to that sinking ship :)

Ben_S

SMF already checks for HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP before falling back on REMOTE_ADDR
Liverpool FC Forum with 14 million+ posts.

cotdagoo

Is there a way to visually tell when a user is using a proxy though? Or to display both IPs in the profile? (if a proxy is used)

I would like to see both if possible rather than defaulting on REMOTE_ADDR.

Ben_S

It defaults onto HTTP_X_FORWARDED_FOR.

Currently it doesn't store remote_addr is the other exist.
Liverpool FC Forum with 14 million+ posts.

Advertisement: