Hosting

How to Turn on Cloudflare Hotlink Protection

One of the more important elements of the posts that you create on your website is the images that you use.

Even the best, most informative article can typically benefit from the inclusion of some pictures to help get your point across, and break up the monotony of text.

But other site owners might like your site’s images and decide to use them for their own purposes.

If they use the actual image that is stored on your Web server, then it is using the resources on your server to display the image on their site.

That’s called hotlinking, and it’s generally not a good thing.

Fortunately, Cloudflare has a setting where you can prevent the hotlinking of your images.

How to Enable Hotlink Protection in Cloudflare

  1. Sign in to Cloudflare.
  2. Select your site.
  3. Choose Scrape Sheild in the left column.
  4. Turn on Hotlink Protection.

Our guide continues below with additional information on protecting your website’s images from hotlinking, including pictures of these steps.

How to Turn on the Image Hotlinking Protection in Cloudflare (Guide with Pictures)

The steps in this guide assume that you have previously set up Cloudflare so that your site is using its features. If not, this article will show you how to get set up.

Step 1: Go to https://www.cloudflare.com and sign into your account.

Step 2: Choose the site for which you wish to enable hotlink protection.

Step 3: Click the Scrape Shield button in the toolbar at the top of the window.

In newer versions of the Cloudflare Web app you will find the Scrape Shield option in the column at the left side of the window.

Step 4: Click the button to the right of Hotlink Protection to turn the setting on.

Note that Hotlink Protection will prevent your images from being displayed in places like Google Images and Pinterest. So if those sites are important to your site, then you may want to consider not using Hotlink Protection.

Our tutorial continues below with additional discussion about how to enable or disable hotlink protection in Cloudflare.

More Information on On How to Use the Cloudflare Hotlink Images Setting

The steps in this article are specifically about the hotlink image protection feature if you use Cloudflare, and you have it enabled.

It’s possible to use Cloudflare just for their DNS, so you may not be able ot take advantage of the hotlink protection if Cloudflare is not enabled as a proxy. You can check this by clicking the DNS option in the left column. If the cloud icon is gray instead of orange next to your DNS records, then you aren’t using Cloudfalre to protect your site. You can turn it on if you want to use Cloudflare’s protection.

Note that enabling Cloudflare for things other than DNS can affect behavior, caching, and more. you will want to check your site after enabling Cloudflare to make sure that there aren’t any unusual or unwanted effects.

Some Web hosting account providers will have ways for you to block direct access to your images form external domains, although the method for doing so can vary significantly, as many of their user interfaces or cPanel setups can be pretty different. You may also need to adjust some settings in your .htaccess file to make hotlinking protection work with your hosting provider.

As we mentioned above, choosing to prevent hotlinking and block other websites or website owners from accessing your hotlinked files with a direct link can help if you are finding that it is taxing your origin server resources by allowing this bandwidth theft.

If you are using a CDN (content delivery network) and haven’t noticed any significant changes to usage or performance then you may not need to stop other sites from linking to the image directly if there aren’t any negative effects on your resources or expenses.

Looking for ways to improve your site speed? Find out how to enable the minify settings in Cloudflare to make your Javascript, CSS, or HTML files smaller and faster to load.

Recent Posts

How to Move a Column in Excel: A Step-by-Step Guide for Beginners

Learn how to effortlessly move columns in Excel with our beginner-friendly guide. Follow these simple…

24 hours ago

How to Create a Zip File in Windows 10: A Step-by-Step Guide

Learn to easily create a zip file in Windows 10 with our step-by-step guide. Compress…

24 hours ago

How to Flip a Picture in PowerPoint: A Step-by-Step Guide

Learn how to easily flip a picture in PowerPoint with our step-by-step guide. Follow these…

24 hours ago

How to Unblock a Number iPhone Guide: Step-by-Step Instructions

Learn how to unblock a number on your iPhone with our simple, step-by-step guide. Regain…

24 hours ago

How to Make All Columns the Same Width in Excel: A Step-by-Step Guide

Learn how to make all columns the same width in Excel with our step-by-step guide.…

24 hours ago

How to Switch Columns in Google Docs: A Step-by-Step Guide

Learn how to effortlessly switch columns in Google Docs with our step-by-step guide. Maximize your…

24 hours ago