Forum Moderators: phranque
Thanks,
Johnquest
SetEnvIfNoCase Referer "^http://www.website.dk/" local_ref
CustomLog "<path>/logs/referer_log" referer env=!local_ref
thus, for the referer log I only see the external entry points and not the internal. I've been applying the same kind of trick to my other logs to filter out unwanted / superflous information.
Also, see [webmasterworld.com...]
Thanks for this code! The only problem, which I'm still researching, is that I don't have write privileges to my log files. I manage my Web site with a control panel called Plesk, which my host provides for me, but I can't even configure the webalizer config file from plesk to filter my ips. My host is "working on it" to see if there's a workaround. Does anyone else mangae their accounts with Plesk or similar control panels? The problem is getting a host to allow access to the files I need with the right privileges and how Plesk interacts with my file system. Please get back to me with your suggestions.
johnquest
But as the logs has a tendency to grow beyound all bounds when using the standard settings for these in httpd.conf, I filter out the requests I'm sure of I wont be interested in already at the logging state. This keeps the logfile sizes down to managable levels.
Thus, access_log gets pre-filtered for css, js, gif, jpg, png
referer_log gets pre-filtered for internal links