HTTP Hearder

I am trying to write a script which uses this cgi variable REMOTE_ADDR to get remote ip of users browsing the site and append it to apache header.

so when I do the following
Telnet servername 80
Head / HTTP/1.0 or GET / HTTP/1.0

it will show the ip apache of user making resquest in the general header fields

Can you help ?please
Thanks in Advance

From reading your other post and this one, I assume that you are looking to output
something like...

% telnet oven 80
Trying 10.14.6.3...
Connected to myhost.it.com.
Escape character is '^]'.
GET / HTTP/1.1
Host: myhost.it.com

HTTP/1.1 200 OK
Date: Thu, 27 Feb 2003 17:40:05 GMT
Server: Apache/1.3.12 (Unix)
Last-Modified: Mon, 06 Aug 2001 13:25:55 GMT
ETag: "1bf28d-1db-3b6e9ae3"
Accept-Ranges: bytes
Content-Length: 475
Content-Type: text/html
Your-IP: xxx.xxx.xxx.xxx

<HTML>
<HEAD>
<TITLE> IS OPS UNIX </TITLE>
</HEAD>.....blah,blah,blah.

Since this would be an addition to the mod_headers (which you stated you use in your other post) can you post the changes you made to your file?
You might also want to look at
mod_log_config since this deals with logging remote IP addresses (which you should be able to then use in somehow in mod_headers)

From mod_log_config:

Also, if you are using a script to try to dump this info into the headers, you would have had to change mod_headers to run the script (which I don't believe you can do but I could be wrong).

Seems like your best bet is to use the mod_log_config info and try placing it into mod_headers. Or take a look at mod_require_host which may suit your needs (at Snert.com )