i use mod_rewrite to prevent directilking to my photo gallery images:
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?fotogalerie.pl(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !=""
RewriteRule .*\.(jpg)$ http://fotogalerie.pl/fg1.GIF [R,NC]
..this worki fine for all webpages.
BUT if we call file url direct from browser ADDRESS BAR it doesn't work - in that case HTTP_REFERRER in Apache log looks like: "-"
how to config .htacces to detect HTTP_REFERRER marked as "-"?