<FilesMatch \.(jpg|gif|png)$>

  SetEnvIfNoCase Referer "^http://www.example.com/" local_referrer=1

</FilesMatch>

  CustomLog logs/access_log combined env=!local_referrer

04-30 06:01