Click here to get back home

IP address and proxy - php script

 HomeNewsGroups | Search

alt.www.webmaster - All aspects of webmastering business 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
IP address and proxy - php script <Richard> 04-14-2005
Posted by <Richard> on April 14, 2005, 1:45 pm
Please log in for more thread options


I am currently using getenv(REMOTE_ADDR) to get the IP address. I don't know
much about proxies. Is this script giving a more accurate IP?

<?
if (getenv(HTTP_X_FORWARDED_FOR)) {
$ipaddress = getenv(HTTP_X_FORWARDED_FOR);
} else {
$ipaddress = getenv(REMOTE_ADDR);
}
show/hide quoted text




Posted by gds on April 14, 2005, 5:48 pm
Please log in for more thread options


show/hide quoted text

As I recall, the X-Forwarded-For header may contain a list of proxies,
some of which may lie within private IP address space. Also, that
header can be easily faked. You need to carefully evaluate how you
are using that information.

--gregbo
gds at best dot com


Similar ThreadsPosted
Proxy script? October 28, 2006, 11:43 am
Proxy Servers April 28, 2007, 3:32 am
Get into the Web Proxy Business! January 12, 2008, 5:37 pm
Apache as [reverse] proxy December 4, 2005, 10:20 pm
New free proxy - CanUnblock.com November 6, 2007, 2:55 pm
ANN: Fastream IQ Reverse Proxy for Windows NT April 17, 2006, 3:01 am
Proxy hosting & domain ownership April 18, 2006, 1:50 pm
psiphon - distributed/encrypted proxy November 27, 2006, 9:17 am
Free New Myspace and Facebook Proxy September 26, 2007, 1:09 pm
Unblock Facebook Proxy - FreeBrowse.net November 9, 2007, 1:19 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy