/ Published in: Apache

you want to block other sites to hotlink your images or media files.
Expand |
Embed | Plain Text
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?your-domain.com/.*$ [NC] RewriteRule \.(gif|jpe?g|png|mov|avi|wmv|mpe?g)$ - [F] # replace your-domain.com with your site domain
You need to login to post a comment.