In the world of SEO, one of the most despite characters most of use encounter is the hotlinkers. Hotlinkers are persons who, rather than hosting their files directly to their site, use another site owner’s binary content and host their files there. It can be annoying, especially when those hotlinked files start to populate your site’s server, hence your uptime statistics become greatly reduced and your incoming traffic is hampered from getting through. Thus, it is important that you learn how to protect yourself from them.
First, you must know that hotlinking is a form of compliment on your end. This only means that your site is popular because you provide your audience with quality content. However, you can’t always be toppled over by pesky rats who want to ruin your business, right? Then here are some ways to prevent them from infiltrating your site.
Perhaps the easiest way to prevent those hotlinks from coming into your site is by regularly changing the names of the files you use on your site. As part of your maintenance program, you should rename your images, flash files and .mp3s so that they would not easily be hotlinked, otherwise they become vulnerable to hotlinkers. You can use a script to do this for you to make things easier. It is also great to constantly change the location of your files so that they would not be caught by hotlinkers.
Another common way to solve this bandwidth leeching issue is by using certain programs in your server. To those who are using an Apache server, you can make use of the Rewrite Engine to prevent those hotlinks from coming in.
Script solutions meanwhile are becoming more popular today since they produce more effective results as compared with server solutions. There are also ready-made scripts available on the web which you can use to stop those hotlinkers from eating your bandwidth, and from there you can once again enjoy you uptime and bandwidth. You should, after all, you’re the one paying for the hosting service.
Through scripts you can also play with the hotlinks and get back at those people who have ridden on your site’s bandwidth. Here’s how:
Image Hotlinkers
The most common item used in hotlinking content are images, so it is best to learn how to treat them first before anything else. What you can do here is replace the image hotlinkers are using with the images you use to advertise your site. Try to make an image with a tag line that says “go to www.example.com to see the image.” Then you rename the file hotlinked.jpg and add it to your server. Now, using you .htaccess file, add this code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ hotlinked.jpg [R,NC]
Music Files
Another commonly hotlinked files that eat up your bandwidth are music files. There are site users which jack your own music files to host their MySpace pages and other social network sites. Well, you can retort by creating an audio advertisement promoting your site and add it into a special .mp3 file called hotlinked.mp3, then place the code in your .htaccess file.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteRule [^hotlinked].(mp3)$ http://www.mydomain.com/hotlinked.mp3 [R,NC] Top of Form
Flash Files
Finally, Flash files have also grown notorious as they are used by hotlinkers. In this case, you have two ways in removing them and placing the files with your own. The first option is by using the getURL() method found inside the flash file and redirect the address of the user to your own site. The process becomes the other way around: you now hijack your hotlinker’s site rather than having yours hijacked. Create the flash file and have it named hotlinked.swf. Another method is by using the same technique done in the images so that it would show a different flash file showing your ads. Either way, you must still add this script in your .htaccess file.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteRule [^hotlinked].(swf)$ http://www.mydomain.com/hotlinked.swf [R,NC]
If all else fails however, you may want to contact the host provider the supports those hotlinkers and tell them that you’re getting so annoyed with their hotlinks and that you want them to stop bugging you. Let them know the exact problem you are suffering from those hotlinks, and ask for server solution to prevent further hotlinks from coming in.
One thing to remember though: while preventing these hotlinks to penetrate into your site, you may also tend to block legitimate link-building offers which may be of great help to your business. However, the decision is always on your hands, and you know better in giving the things your site needs.
No Related Posts





January 10th, 2009 at 1:42 am
This is a good suggestion. Hotlinkers are a huge hit to your bandwidth and for no gain to yourself. I think another possible solution for images is watermarking, but that means the image will look poor on your site too.
I like our renaming idea and will have to try a script. I've always been turned off by the idea simply because it seems so overwhelming.
January 10th, 2009 at 5:36 am
it's happen to me once, I just made an advertisement by using the same script. I make a banner with my url printed. The result I got more traffic.
January 10th, 2009 at 5:59 am
Thanks for the tips, haven't heard about the hotlinkers before.
January 13th, 2009 at 5:40 am
Image Hotlinkers killed my bandwidth a while back, I did the same thing as Busby SEO and added my url to the image and my traffic raised.
January 18th, 2009 at 4:33 pm
Someone was hotlinking to my image and I just simply emailed them asking for a link back. They replied and said, "sure". Saved me from having to do all this redirecting stuff (goes straight over my head)
Stan
January 28th, 2009 at 11:18 am
thanks for the info, protection is a must
April 1st, 2009 at 12:58 pm
nice tricks, I was looking for a way to use the swf to redirect the scrapper site to my arcade site and found this site. I have already implemented this to save some bandwidth. Now looking for solution for site scrapper.
April 4th, 2009 at 6:54 pm
Yet another great post! When I started paying attention to my weblogs I was seeing strange URLs and didn't understand what they were. Today after reading this post I went back to a copy of my stats and realized that there are several webmasters (or so called masters) that were linking not only to my images but also taking copies of my entire webpage in order for them to publish my material on their websites as my affiliate. Thanks to you I now know my problem and exactly what I have to do to address the problem altogether.
June 21st, 2009 at 9:41 am
I have a question… I'd like to implement a form of blocking the hotlinkers… but How do I find who is hotlinking my content? I would rather see the website that is using my stuff first before taking any action.
-Randy
August 12th, 2009 at 9:05 am
Very helpful tricks. The question is it really save for google?
November 16th, 2009 at 7:07 am
We have to take a look at the source before using that they have been affected by Hot linkers or not!