httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] apache logs
Date Tue, 03 Dec 2002 13:59:21 GMT
RefererIgnore works on strings, it doesn't know or care about TCP/IP. With each request, the
client has the option of adding a "referer" header. This is a string which contains the address
of the page that the user was looking at when he clicked the link to go to your page.

E.g. the page http://www.acme.com/index.html contains a link to your page. When someone clicks
on the link, your server will get a request containing the header line:

Referer: http://www.acme.com/index.html 

You can see this string in your logfile by adding it to the LogFormat directive as %{Referer}i
(see docs for details).

RefererIgnore might be useful for some cases where you know in advance the URL of referring
pages but it doesn't resolve IP addresses or anything - it is just a straight string-matcher.
E.g. if www.acme.com resolves to 192.168.1.1, then RefererIgnore www.acme.com will ignore
requests only from that domain. It will not match requests from 192.168.1.1 or from www2.acme.com
(even if it has the same IP) or whatever..
Rgds,

Owen Boyle

>-----Original Message-----
>From: C White [mailto:cwhite@theatomicmoose.ca]
>Sent: Dienstag, 3. Dezember 2002 14:44
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] apache logs
>
>
>thanks but i managed to stumble across RefererIgnore late last night, 
>and it seems to do what i want but it doesn't fully explain 
>the string i 
>would need, for example is it RefererIgnore 192.168.10 or 192.168.10.0 
>or 192.168.10.0/255.255.255.0 i can't find anything that 
>explains how to 
>us it to use it to ignore entire netblocks, any ideas?
>
>Boyle Owen wrote:
>
>>RTFM "Conditional Logging" in the Log Files Tutorial in the 
>apache docs.
>>
>>  
>>
>>>-----Original Message-----
>>>From: Carlos White [mailto:cwhite@theatomicmoose.ca]
>>>Sent: Montag, 2. Dezember 2002 19:34
>>>To: users@httpd.apache.org
>>>Subject: [users@httpd] apache logs
>>>
>>>
>>>how do i tell apache not to log requests for pages/sites from 
>>>my internal network?
>>>
>>>
>>>thanks
>>>-- 
>>>http://theatomicmoose.ca
>>>
>>>
>>>
>>>
>>>
>>>-------------------------------------------------
>>>This mail sent through Moose Mail http://webmail.theatomicmoose.ca
>>>
>>>
>>>---------------------------------------------------------------------
>>>The official User-To-User support forum of the Apache HTTP 
>>>Server Project.
>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>    
>>>
>>
>>This message is for the named person's use only. It may contain
>>confidential, proprietary or legally privileged information. No
>>confidentiality or privilege is waived or lost by any mistransmission.
>>If you receive this message in error, please notify the 
>sender urgently
>>and then immediately delete the message and any copies of it from your
>>system. Please also immediately destroy any hardcopies of the message.
>>You must not, directly or indirectly, use, disclose, 
>distribute, print,
>>or copy any part of this message if you are not the intended 
>recipient.
>>The sender's company reserves the right to monitor all e-mail
>>communications through their networks. Any views expressed in this
>>message are those of the individual sender, except where the message
>>states otherwise and the sender is authorised to state them to be the
>>views of the sender's company. 
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>  
>>
>
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message