Forum Moderators: DixonJones
For example myself, then I also have a template engine that grabs pages off the server. Every page request it grabs a template. Also there are some quite annoying bots like Internet Seer that keep coming 100 times a day...
I don't have access to httpd.config, but maybe it's possible to do by .htaccess?
TIA
I ask this because if you're trying to exclude the IPs from your web analysis software reports, you should do it in the web analysis software. Every package that I know of, from free to $15,000+ supports this feature.
If that is your goal, do it there, not in the logs.
# Don't log /template.html
SetEnvIf Request_URI "^/template\.html$" dontlog
# Log everything else
CustomLog logs/access_log combined env=!dontlog
Check out [httpd.apache.org...] for more information. Unfortunately, you can only use it within the main server config or virtual host directive, not in .htaccess. Sorry.
I am a frequent visitor and I have a Perl script that requests pages from the same server, so that SSIs can be parsed correctly for further template use. So every time user requests a page, Perl grabs 1 or 2 pages from the server, so my logs double the size with totaly useless information.