Feb 22, 2024
Hasna A.
7min Read
Feb 22, 2024
Hasna A.
7min Read
Hotlinking is the act of using another site’s bandwidth by displaying their website asset – like an image, video, or audio file – on a different website via a direct web link.
When this happens, the original website owner must cover and pay for these server resources each time a web browser wants to load and view the asset.
If you’re a website owner or a web user in general, you might have heard about hotlinking. Many webmasters consider it bad practice because it can put websites at a significant disadvantage.
For example, Website B’s owner found a funny meme on Website A and decided to use it on their website. But instead of saving the image on their computer and reuploading it, the owner of Website B links the image directly from Website A to instantly show it on their site.
Even though people can see the meme on Website B’s site, the origin server is still storing it. In other words, server resources from Website A are used every time a user views the hotlinked image. If Website B receives high traffic, a significant amount of Website A’s server resources will be used.
This article will explain why you should avoid hotlinking and how to stop doing it. For web administrators, we provide four methods to protect your website from hotlinks: using hPanel, an FTP client, a content delivery network (CDN), and WordPress plugins.

It’s a fact that hotlinking negatively impacts website owners the most. For those who do it, hotlinking might seem like an easy way to acquire website assets, but in reality, hotlinking can harm them too.
Let’s go over the five main reasons why you should avoid hotlinking at all costs:
Now that you’ve learned why you should stop hotlinking, you might be wondering what to do instead when you would like to use images from other websites.
The most important part is making sure that you’ve been given the authorization to use the image. There are some images that you can acquire by simply asking for the owner’s permission. Others are under a strict legal license – for example, copyrighted photographs.
Once you’ve received the permission or took care of the legal process, you should upload the file to your own host or use a third-party provider. For images, use an image hosting service like Imgur. This way, you will not be stealing bandwidth from the original website owner.
If, for any reason, you can’t acquire the image you want, try these alternatives:
Putting hotlink protection in place is very important to prevent issues related to content and bandwidth theft.
Before you proceed, keep in mind that hotlink protection won’t hurt your website’s presence in search results. As long as you don’t block search engines from indexing your images, your search engine optimization (SEO) efforts will be unaffected.
Let’s go over four different methods to protect your assets from getting hotlinked.
If you host your website on Hostinger, you can set up hotlink protection right from hPanel. The process should be similar on other control panels. Follow these steps:

Another option is to edit your website’s .htaccess file by accessing it through an FTP client like FileZilla or the file manager on your hosting account’s control panel.
Keep in mind that this method involves editing your website’s code, so be careful – a small error can render your site unusable.
RewriteEngine onRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC]RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]Using a content delivery network (CDN) for your website has many benefits. A CDN can increase content delivery speed, providing a better performance for your visitors. It can also offer asset management features for website administrators, hotlink protection being one of them.
The process of activating hotlink protection will vary depending on the CDN provider you use. The following tutorial will go over how to set up hotlink protection on two popular CDN providers – Cloudflare and KeyCDN.
Here’s how to activate hotlink protection on Cloudflare:


The Scrape Shield app by Cloudflare specifically prevents image hotlinking and supports .gif, .ico, .jpg, .jpeg, and .png file types.
Here’s how to activate hotlink protection on KeyCDN:


If you use WordPress as your website’s content management system (CMS), there are several WordPress plugins available that can prevent hotlinking. We’ll go over three of them.
The first one is the All In One WP Security and Firewall plugin, which can automatically edit your website’s .htaccess file to prevent hotlinks. Follow these steps to set it up:

Another plugin you can use is WP Content Copy Protection & No Right Click. This plugin can block visitors from copying text and right-clicking on your website. If you enable the right-click prevention, your visitors won’t be able to find or save the direct link to your content files.
Here’s how to enable the right-click protection on your site using this plugin:

Secure Copy Content Protection and Content Locking is another option to disable right-click and asset copying. Here’s how to set it up:


Hotlinking is the act of copying assets, usually images, by linking the file directly from other websites without authorization.
It is a bad practice that negatively impacts web administrators. Hotlinking another website’s images can take up a significant amount of bandwidth on its server and infringe on its owners’ copyright.
We’ve explored different reasons why you should never hotlink and what you can do instead to obtain and share content assets. We also went over four methods to protect your website from hotlinking.
We hope that this article has helped you find better ways to acquire content and keep your site safe from bandwidth theft. Good luck.
How to Diagnose and Fix a Hacked Website
Website Optimization
How to Clear Browser Cache and History
How to Inspect Element
How to Download a Website Backup
How to Check Your Website’s PHP Error Log
While hotlinking is considered bad manners in the online community, it’s not illegal in the EU or in the US to embed images without permission.
‘No hotlinking’ is a request aiming to limit others from directly linking to your website’s assets, and subsequently, stealing your website’s bandwidth.
When you have hotlinking protection enabled, nobody can directly link to your website’s assets (like images and videos). This way, you can reserve bandwidth and ensure your website works the way it should.
All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.