Apr 16 2014 
Support Center » Knowledgebase » General Information » How do I prevent hotlinking of images?
 How do I prevent hotlinking of images?
Solution You can prevent gif, jpeg, png files (and any other file formats you choose) from being hotlinked in other websites is to use a few mod_rewrite rules in your .htaccess file.

1. RewriteEngine on
2. RewriteCond %{HTTP_REFERER} !^$
3. RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?powervps\.com [NC]
4. RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]

Article Details
Article ID: 190
Created On: Feb 09 2009 04:43 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Remember Me:
 Article Options
Home | Register | Knowledgebase

Help Desk Software By Kayako eSupport v3.60.02