What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » (!IP) in latest version not giving proper external IP

(!IP) in latest version not giving proper external IP
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: (!IP) in latest version not giving proper external IP
REMOTE_ADDR is the most reliable/common, and can be trusted. However, it doesn't always show the correct IP if you're using a proxy. For that, you need HTTP_X_FORWARDED_FOR, but keep in mind that it can be spoofed, or contain dodgy values such as "unknown" or multiple IPs added by multiple proxies. :dodgy:

Very simple example that doesn't check if HTTP_X_FORWARDED_FOR is valid (I'm lazy :p)...

code:
if($_SERVER['HTTP_X_FORWARDED_FOR']) {
    echo $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
    echo $_SERVER['REMOTE_ADDR'];
}

This post was edited on 09-22-2004 at 04:09 AM by WDZ.
09-22-2004 04:04 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
(!IP) in latest version not giving proper external IP - by TheDude on 09-20-2004 at 05:50 PM
RE: (!IP) in latest version not giving proper external IP - by Patchou on 09-20-2004 at 06:38 PM
RE: (!IP) in latest version not giving proper external IP - by lopardo on 09-20-2004 at 06:56 PM
RE: (!IP) in latest version not giving proper external IP - by TheDude on 09-20-2004 at 07:33 PM
RE: (!IP) in latest version not giving proper external IP - by Millenium_edition on 09-20-2004 at 07:34 PM
RE: (!IP) in latest version not giving proper external IP - by TheDude on 09-20-2004 at 07:41 PM
RE: (!IP) in latest version not giving proper external IP - by Patchou on 09-22-2004 at 12:42 AM
RE: (!IP) in latest version not giving proper external IP - by brian on 09-22-2004 at 01:32 AM
RE: (!IP) in latest version not giving proper external IP - by Patchou on 09-22-2004 at 03:36 AM
RE: (!IP) in latest version not giving proper external IP - by WDZ on 09-22-2004 at 04:04 AM
RE: (!IP) in latest version not giving proper external IP - by TheDude on 09-22-2004 at 04:03 PM
RE: (!IP) in latest version not giving proper external IP - by WDZ on 09-22-2004 at 04:20 PM
RE: (!IP) in latest version not giving proper external IP - by Kryptonate on 09-22-2004 at 05:38 PM
RE: (!IP) in latest version not giving proper external IP - by Osiris on 09-22-2004 at 06:00 PM
RE: (!IP) in latest version not giving proper external IP - by TheDude on 09-23-2004 at 04:03 PM
RE: (!IP) in latest version not giving proper external IP - by Patchou on 09-24-2004 at 01:06 AM
RE: (!IP) in latest version not giving proper external IP - by TheDude on 09-26-2004 at 12:04 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On