« Preventing hotlinking images from any domain except Yahoo! Image Search and Google Images | Home | Blocking certain sites from hotlinking images via mod_rewrite »
Displaying another image when someone hotlinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|png)$ images/no_hotlink.jpg [L]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|png)$ images/no_hotlink.jpg [L]
Topics: apache, hotlink, linux, mod_rewrite | Submitter: admin
Comments
You must be logged in to post a comment.