.htaccess hotlink protection

Hotlink protection of images

Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images.[ad code=4]
After you have created a .htaccess for hotlink protection, you can use the tool to test hotlink protection.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cdl.gr [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cdl.gr [NC]RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

Leave a comment