[apache 1.3.x] logging *entire* request header set?

This is a discussion on [apache 1.3.x] logging *entire* request header set? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hey all, I've got some servers running various Apache 1.3.x instances, most with PHP 4 installed as ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-27-2005
Eli the Bearded
 
Posts: n/a
Default [apache 1.3.x] logging *entire* request header set?

Hey all,

I've got some servers running various Apache 1.3.x instances, most with
PHP 4 installed as a module. I'm looking to find a way to log the
entire client request (at least a smattering of pages) starting with
the request line and including all of the headers.

I know with CGI programs I can get the headers from the environment,
and I've found a way with PHP to access the headers as an array, but
both of these lose the header order.

Anyone have ideas?

Elijah
------
has been logging the reordered headers for lack of something better
  #2 (permalink)  
Old 05-27-2005
Paul Rubin
 
Posts: n/a
Default Re: [apache 1.3.x] logging *entire* request header set?

Eli the Bearded <*@eli.users.panix.com> writes:
> I know with CGI programs I can get the headers from the environment,
> and I've found a way with PHP to access the headers as an array, but
> both of these lose the header order.
>
> Anyone have ideas?


For debugging purposes I've generally done that with the junkbuster
proxy. If it's for production you probably want to find something
less kludgy.
  #3 (permalink)  
Old 05-28-2005
Eli the Bearded
 
Posts: n/a
Default Re: [apache 1.3.x] logging *entire* request header set?

In comp.infosystems.www.servers.unix,
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
> Eli the Bearded <*@eli.users.panix.com> writes:
> > I know with CGI programs I can get the headers from the environment,
> > and I've found a way with PHP to access the headers as an array, but
> > both of these lose the header order.
> > Anyone have ideas?

> For debugging purposes I've generally done that with the junkbuster
> proxy. If it's for production you probably want to find something
> less kludgy.


I don't want to stick a proxy in front of my website for capturing the
incoming traffic. For capturing stuff from my own browser I have used
proxies, but now favor Firefox's Live HTTP Headers plugin (at mozdev).

I'd like to be able to capture all headers for things like web robots
and exploit attempts.

Elijah
------
doing it in apache makes it easier to capture non-ErrorDocument handled errors
  #4 (permalink)  
Old 05-28-2005
Paul Rubin
 
Posts: n/a
Default Re: [apache 1.3.x] logging *entire* request header set?

Eli the Bearded <*@eli.users.panix.com> writes:
> I'd like to be able to capture all headers for things like web robots
> and exploit attempts.


If you're going to capture and record incoming passwords and
authentication cookies, you may be creating worse exploits (in
the form of the log file itself becoming a juicy target) than you're
solving. You have to be careful with this kind of thing.
 


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0