Return to Snippet

Revision: 47623
at June 11, 2011 13:47 by silviud


Initial Code
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

Initial URL

                                

Initial Description
you want to block other sites to hotlink your images or media files.

Initial Title
Block hotlinking apache

Initial Tags
apache

Initial Language
Apache