| Hotlink Protection for your images |
|
|
| Tuesday, 27 November 2007 | |
|
Here is an example .htaccess file, that will protect your images from being hotlinked, so you can save your bandwidth.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ bloked.jpg [NC,R,L] This is a tested technique that will save you a lot of trouble. You can add as many extensions as you like, .FLV for example if you have a video sharing website. |
|
| Last Updated ( Tuesday, 27 November 2007 ) |