How To Tell Apache To Not Log Certain Requests In Its Access Log

Written By
FT
Falko Timme
Oct 1, 2007

“Normally Apache logs all requests in its access log. In certain
cases this can distort your page view statistics (if you use a tool
like Webalizer or AWStats that creates statistics based on Apache’s
access log), for example if you get lots of visits from search
engine spiders or from a certain IP address (e.g. your own), or if
each of your pages includes another page (e.g. in an iframe) from
your web site (that would instantly double your page views which is
obviously not correct). This short guide shows how you use Apache’s
SetEnvIf directive to prevent Apache from logging such
requests…”

Complete
Story

FT

Falko Timme

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.