O'Reilly logo
  • Mohammed Mundhir thinks this is interesting:

<FilesMatch \.(jpg|gif|png)$>
    SetEnvIfNoCase Referer "^http://www.example.com/" local_referrer=1
</FilesMatch>
CustomLog logs/access_log combined env=!local_referrer

From

Cover of Apache Cookbook, 2nd Edition

Note

filematch image regex