Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 13th, 2002, 06:36 AM
nabilf nabilf is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 1 nabilf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question $REMOTE_ADDR

hello guys,
i'm making a page in php where i want to know the ip of the user connected.
PHP Code:
<?php echo $REMOTE_ADDR?>

the problem is that this does not return the good ip that my ISP has given me, but it returns the IP of the proxy used by the ISP. this does not allow me to know individual IPs but it returns one IP for all the users connected through my ISP.
what bothers me more is that if i go to other sites that display IPs i get the real IP that i have not the one of the proxy!!!!

is there a special configuration so that the APACHE returns the IP of the user and not the ip of the proxy used by the ISP? or is there another way to know the IP of the user?

Thanks

Last edited by nabilf : March 13th, 2002 at 06:43 AM.

Reply With Quote
  #2  
Old March 13th, 2002, 07:04 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You will need this must have module -> mod_extract_forwarded so you can extract the actual IP of the user rather than the proxy server's IP.

If you've been looking at mod_rpaf and mod_proxy_add_forward, they are not the same. You'd need them if you are the one running the proxy server.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > $remote_addr


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT