How to Prevent Websites from Hotlinking your Site Images

Hot-linking occurs when someone directly uses a link to an image that is stored on your site server, instead of saving and uploading the image to his own website server. This is referred to as bandwidth theft because the person is utilizing the bandwidth for which you’re paying and causes extra load on your server which can degrade its performance.

This is usually the case with Spam Blogs who blindly copy your content and link directly to your site images. Let’s say you published an informative article, then there is a good chance that it might get scrapped by numerous content scrappers as was happened in my case. To prevent this, you must Enable Hotlink Protection for your blog or website and stop everyone else from hotlinking your site images and videos.

How to Stop Hotlinking using cPanel –

We’re sharing the easiest method to do this task, provided your site has cPanel and you have access to it. Follow the steps below:

1. Login to cPanel.

2. Select “HotLink Protection” from Security window in cPanel.


3. Click on the ‘Enable’ button to enable hotlink protection.

4. Now enter the desired URLs/website to whom you want to allow access. Make sure to enter your site domain here as well as the list of feed readers like Feedburner, Google Reader, Bloglines, etc. so they don’t display the redirect image on your site and feeds.

Hotlink Protection

ADD all the domains listed in image below (replace with your domain).

URLs to allow access

5. Specify the file extensions you wish to block. (Default are jpg, jpeg, gif, png, bmp)

6. Input the URL of any image (should NOT be hosted on your site) which you like to serve as the Redirect image on sites who have hotlinked your images. Below is an example of our redirect image hosted on Imageshack.


Then click ‘Submit’ and you’re done. Now visit any site who is directly linking to your site images. They must show the redirect image. In my case above image is shown, visit ( , to see the live demo 🙂

“Do check your website and feeds properly after making this change to make sure everything is working the right way.”

Thanks +Dhawal Damania and +Amit Banerjee for the hat tip!


Mayur Agarwal is the founder and editor of WebTrickz. He is a Tech enthusiast and an Internet freak who loves to try out new gadgets and smartphones. You will usually find him sharing useful How To’s and Tips & Tricks. Follow him @mayurjango on Twitter where he is extremely active.

4 Responses

  1. Sunil J says:

    Those images are still up. Wonder when they are going to notice you have tricked them.

  2. Imran says:

    This was the option that I mentioned to you in G+ but you said it does not exist. Good to see that you atlast found the solution. Also put a copyscape protected badge to your website its free.

  3. Red Denal says:

    Hello Mayur, I think there’s another way of protecting your content, but I forgot the source code. It’s function is to block all viewer and reader of your blog to use “right click” or “highlight” from any contest on your site. In this way they cannot copy your URL link. Hope this make sense. 🙂

  4. @Red But I think a simple CTRL+A will serve the purpose of copying, I really don’t feel that adding a copyscape banner will help in making things better.. furthermore need to digg deeply into this topic..

Leave a Reply

Your email address will not be published. Required fields are marked *