If you host more than one domain on one account your hotlinking protection on the main domain can become a problem with your addon domains. The hotlink protected file types will not show up in your addon domains. I had this problem recently at bluehost and I am going to share how you can get round this problem.
First things first – how do you set up hotlinking protection. In CPanel click on the corresponding link and choose the site you want to enable it for. Next just add the excluded file types and you are done. This is the hotlinking protection for one domain but what if you have more than one domain on one account? Just enable it for all three. Doing this through CPanel can get messy so we go directly to the .htaccess in your httpdocs directory.
In there you will find code which will look something like this:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://maindomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://maindomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.maindomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.maindomain.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|swf|dcr|png|bmp.*)$ http://www.nytimes.com/ [R,NC]
Now to take care of more than one addon domain just insert the following. In my case I set this up for two addon domains. By the way, yes I am redirecting hot link attempts to the NYTimes. After all bandwidth thieves should stay in touch with current affairs as well
RewriteCond %{HTTP_REFERER} !^http://maindomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://maindomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.maindomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.maindomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://addondomain1.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://addondomain1.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.addondomain1.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.addondomain1.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://addondomain2.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://addondomain2.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.addondomain2.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.addondomain2.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|swf|dcr|png|bmp.*)$ http://www.nytimes.com/ [R,NC]
So what’s the fuzz about? Well, as I stated before if you just install hotlinking on your top level domain then you won’t be able to use images on the addon domains beneath it unless you activate the hotlinking protection for them as well.