/ Published in: Apache
you want to block other sites to hotlink your images or media files.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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