Stop / Disable Hotlinking with htaccess

by Dinesh 2014-08-13 13:05:52

Do you want to stop Hotlinking from search engines?

The following code is used to prevent HotLinking to jpg, jpeg, gif, png, and bmp file types.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?my-website.com/.*$ [NC]
RewriteRule .(jpg|jpeg|gif|png|bmp)$ - [F]

Tagged in:

645
like
0
dislike
0
mail
flag

You must LOGIN to add comments