Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: cotdagoo on October 15, 2005, 12:13:11 PM

Title: detect internal & proxy ips?
Post by: cotdagoo on October 15, 2005, 12:13:11 PM
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 :)
Title: Re: detect internal & proxy ips?
Post by: Ben_S on October 15, 2005, 06:22:28 PM
SMF already checks for HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP before falling back on REMOTE_ADDR
Title: Re: detect internal & proxy ips?
Post by: cotdagoo on October 15, 2005, 11:48:54 PM
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.
Title: Re: detect internal & proxy ips?
Post by: Ben_S on October 16, 2005, 08:43:28 AM
It defaults onto HTTP_X_FORWARDED_FOR.

Currently it doesn't store remote_addr is the other exist.