What is Hotlinking and How can I enabled it on the website

Ever wonder why your site bandwidth is so high or how your site bandwidth is being stolen. It is because of  Image Hotlinking.

Hot-Linking is a term used for indirect  Bandwidth theft. It is a process through which an Image or Video is linked directly form a website by using <img> tag. This way the person who uses a link to the picture saves his storage and Bandwidth by stealing others bandwidth and money.

<img src="www.example.com/image.jpg" height="300" width="250">

But you can prevent it by enabling “Hotlink Protection.”

Hotlink protection prevents other websites from directly linking to files (images or video) on your website.   By hotlink protection you can prevent others from stealing your bandwidth and save your money.


You enable hotlink protection by adding following codes into your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?dnetzone.in/.*$ [NC]
RewriteRule .*.(jpeg|gif|jpg|png|bmp)$  [F,L]

ofcourse, replace dnetzone.in by your Domain Name


To Enable Hotlink Protection Go To your Cpanel X >Security > Hotlink protection.

Now configure Hotlink protection by enter your desire domain to allow access.You can also specify which type of   file is to be protected,for example  jpg, jpeg, gif, png, bmp etc.In Redirect request you can give any Image URL to show error.



Do let us know if you have any Problems

Dhawal D