|
4 Notices
|
KB Home >
.htaccess
>
Prevening hot-linking of images from your website
|
Preventing hot-linking of images from your website If your website contains images which people from other websites are linking to and you get charged for the extra bandwidth, then placing the following lines will prevent any such image hot-linking. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?your-domain.com/.*$ [NC] RewriteRule .(gif|jpg)$ - [F] In the above code, replace [your-domain] with your actual domain name [without www] =] |
Mail |
Print| Additional Info |
![]() |