• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Answer Your Tech

Wordpress How-to Guides

  • Writing
  • Settings
  • Jetpack
  • Navigation
  • Hosting
  • Getting Started
  • Themes
You are here: Home / Hosting / How to Turn on Cloudflare Hotlink Protection

How to Turn on Cloudflare Hotlink Protection

May 23, 2022 By Matthew Burleigh

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.

Table of Contents hide
1 How to Enable Hotlink Protection in Cloudflare
2 How to Turn on the Image Hotlinking Protection in Cloudflare (Guide with Pictures)
3 More Information on On How to Use the Cloudflare Hotlink Images Setting

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.

select a site

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.

click the scrape shield button

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

how to enable hotlink protection in cloudflare

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.

Matthew Burleigh
Matthew Burleigh

Matt has been working with WordPress and creating content using this powerful content management system for years. While he has written about many other tech topics, WordPress is one of his favorites.

You can read his full bio here.

Join Our Free Newsletter

WordPress guides and deals

You may opt out at any time. Read our Privacy Policy

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Primary Sidebar

Join Our Free Newsletter

WordPress guides and deals

You may opt out at any time.
Read our Privacy Policy

Recent Posts

  • How to Add a TXT DNS Record in Cloudflare
  • How to Enable or Disable User Registration in WordPress
  • How to Install and Configure the WP Rocket Plugin
  • How to Make WordPress Not Organize my Uploads into Month and Year-Based Folders
  • How to Turn on Cloudflare Hotlink Protection

Site Info

  • Domain Name - Hostgator
  • Hosting - Cloudways
  • Theme Framework - Genesis
  • Child Theme - Smart Passive Income Pro
  • Site Speed - WP Rocket

Archives

  • November 2022
  • October 2022
  • May 2022
  • July 2020
  • September 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • July 2018
  • December 2016
  • November 2016

Categories

  • Comments
  • Genesis
  • Getting Started
  • Hosting
  • Jetpack
  • Navigation
  • Plugins
  • Settings
  • Sidebar
  • Themes
  • Writing
  • Affiliate Disclosure
  • Privacy Policy
  • FAQ
  • About
  • Contact

Copyright © 2023 AnswerYourTech.com

 

Loading Comments...
 

You must be logged in to post a comment.