View Single Post
  #4  
Old 01-26-2013, 01:45 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
I'm not familiar with CPanel Hot Link protection yet. but it can be easily to do in .htaccess. here's an example:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png|swf|flv|mp4|mp3)$
[NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?mydomain.com [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google\. [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yahoo\. [NC]
RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?bing\. [NC]
RewriteRule \.(gif|jpe?g?|png|swf|flv|mp4|mp3)$ - [F,L]
Reply With Quote