Forum Moderators: phranque
This is the code I'm using.
RewriteEngine On
RewriteCond %{HTTP_REFERER}!^$ [NC]
RewriteCond %{HTTP_REFERER}!^http://website.com/ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.website.com/ [NC]
RewriteRule [^/]+.(jpeg¦jpg)$ - [F]
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.domain.com/.*$ [NC]
RewriteRule .*\.(gif¦jpg)$ - [F]
users can still right click and download with out a problem
[edited by: DaveAtIFG at 12:50 am (utc) on Dec. 14, 2002]
[edit reason] Revised to generic URLs [/edit]
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain\.com [NC]
RewriteRule .*\.(gif¦jpg¦jpeg?¦png)$ - [F]
Note: Replace all broken vertical pipe symbols "¦" with the one from your keyboard before use!
Jim