2009/1/7 Mehmet ÇELiK <r...@justunix.org>: > Hello, > > I think you understand me wrong or you did not read all of my mail. > The problem is that: > I want to change the place of the value at X_FORWARDED_FOR.with REMOTE ADDR. > I mean, > when web server looked at to HEADER, It can see the Client IP Address, It > does not see REVERSE. And I want to make this activite as REMOTE_ADDR. > > I want to see the informations as the below: > > PHP Code: > <?php > echo "X_Forward = ".$_SERVER['HTTP_X_FORWARDED_FOR']; > echo "<br>Remote_Addr = ".$_SERVER['REMOTE_ADDR']; > ?> > > Web Servers says that: > X-Forwarded-For = Client IP Address > Remote Address = Reverse Proxy IP Address >
Ok I got your meanings. If PHP can get remote address by $_SERVER['REMOTE_ADDR'], then it should always get it by this way, nothing to do with Squid. Also X-Forwarded-For just behaves well under your case. Ralf.