Hotlink Protection

 

Place this into your .htaccess file

//START CODE

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

//END CODE
 

yourdomain.com :replace this with the URL you
 want to ALLOW to hotlink images
 (e.g.: your own domain)
anotherdomain.com :replace this with the URL you
 want to ALLOW to hotlink images
 (e.g.: your own domain)
jpg|jpeg|png|gif :replace this with the image extensions
 you want to hotlink protect
 (without the dots)

Attention: This code won´t work with movies!


     ▪ Bookmark
     ▪ Mousover
     ▪ ImagePop
     ▪ Date Generator
     ▪ Random Numbers
     ▪ Text Generator*
     ▪ Timed Popup*
     ▪ Popup Size*
     ▪ Popup w/o Scrollbars*
     ▪ Mouse with Tail*
     ▪ Adressbar Effect*

     ▪ Redirect*
 

    Redirect
     ▪ Hotlink Protection
     ▪ IP Blocking

 

     ▪ Head*
     ▪ Body*
 

     ▪ Message Board*
     ▪ Contact