« Print the PATH directories in the readable format | Home | Displaying another image when someone hotlinks »
Preventing hotlinking images from any domain except Yahoo! Image Search and Google Images
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(images\.)?yahoo\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(images\.)?google\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|png)$ - [F]
RewriteCond %{HTTP_REFERER} !^http://(images\.)?yahoo\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(images\.)?google\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|png)$ - [F]
Topics: apache, hotlink, linux, mod_rewrite | Submitter: admin
Comments
You must be logged in to post a comment.