Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

My log fills up with jpg requests

setenvif?

     
4:52 pm on Mar 30, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 10, 2004
posts:50
votes: 0


My website hosts a lot of images. Does it make sense to issue this statement in my httpd.conf file?

SetEnvIf Request_URI "\.jpg$" dontlog

I can't see any reason why I need to log these for security purposes. Can you?

8:55 pm on Mar 30, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


That depends on whether you occasionally scan your logs (or stats) for evidence of hotlinking -- people putting image links on their Websites that cause their visitors browsers to fetch the images from your server. If this is not a concern, then you might want to disable logging for image requests.

Jim

9:15 pm on Mar 30, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 10, 2004
posts:50
votes: 0


Ahhh....good point. I'll keep that one in mind.
10:19 pm on Mar 30, 2005 (gmt 0)

Senior Member from MT 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 1, 2003
posts:1843
votes: 0


Personally I use:

<FilesMatch "(\.(gif¦jpg¦png¦ico¦css¦js)¦robots\.txt)$">
SetEnv image-request 1
SetEnv dont-log 1
</FilesMatch>
CustomLog logs/access.log complete env=!dont-log

Does setting "dontlog" instead of my own "dont-log" mean u can skip the "env=" parameter for CustomLog?

SN

10:20 pm on Mar 30, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 1, 2005
posts:374
votes: 0


Also matters for things link hitcount (or bytecount) tracking. If you don't log those requests, you can't track them at all; you can't see which images are getting hit hard, and figuring out how much traffic you're pushing in a day becomes tricky (to say the least). If these aren't issues, then by all means, look into not logging. Me, I log every request, even on the sites where I need to roll/compress my logs multiple times per day to keep things running smoothly. =)
5:28 pm on Mar 31, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Mar 3, 2004
posts:270
votes: 0


I don't log image requests unless they have an off-site referrer.
<Files ~ "\.(gif¦jpe?g¦png¦ico)$"> 
SetEnvIf intra_site_referral 1 common_image_request
</Files>
CustomLog access_log combined env=!common_image_request
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members