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

JUST BRIGHT ME

Makes WordPress and SEO Easier

  • Start Blog
  • Blogging
  • SEO
  • WordPress Guide
Home » WordPress Guide » How to Prevent Image Hotlinking in WordPress (4 Easy Methods)

How to Prevent Image Hotlinking in WordPress (4 Easy Methods)

Written by AMAN SINGH

Image Hotlinking is a common problem. It negatively impacts your site’s performance and you also have to pay for bandwidth. There are so many users who are aware of the image hotlinking but they do not care. In this article, I’m going to share how to prevent image hotlinking in WordPress for bad guys?

    • What is Hotlinking and Why is It Bad
  • How to Prevent Image Hotlinking in WordPress
    • 1. Prevent hotlinking Using .htaccess file
    • 2. Disable Image Hotlinking using Cloudflare
    • 3. Disable Image Hotlinking In WordPress With Plugins
    • 4. Disable Image Hotlinking Using cPanel
    • Final Thought

What is Hotlinking and Why is It Bad

When a user copy and paste your site’s image URL to another site, it’s called Image Hotlinking.

For example, Using images on Abcd.com that hosted on JustBrightMe, shown image hotlinking.

However, this is not good. They use your site image on their website without your permission. In addition, they put negative effects on your site.

Here is downside of image hotlinking.

It badly affects the performance of your site and bandwidth. When a user sees the hotlinked image, it loads from the original server. If a high traffic site hotlinking your site’s images, then every request will process from your server which can slow down your site and increase the cost of bandwidth.

If you use a managed hosting or pay for bandwidth, then you have to spend more money. That’s why you should disable image hotlinking on your WordPress site.

If you want to see your Hotlink image, then just type in Google search box,

inurl:yoursite.com -site:yoursite.com

This command will show you some wrong results but there will be places where people have hotlinks your images.

How to Prevent Image Hotlinking in WordPress

There are lots of methods to disable image hotlinking such as using plugins, using Content Delivery Network (CDN), using the code snippet using cPanel. Here I will cover all the methods.

Note: Make a backup of your site before applying the process.

1. Prevent hotlinking Using .htaccess file

If you want to disable image hotlinking on your WordPress site by .htaccess file, then you just have to put some code snippets in your .htaccess.

You can use the free hotlink protection tool to generate code. This tool helps you to generate .htaccess Code Snippet. Simply enter your domain. Also, I recommend you to enter some popular search engines and social networks. You can see screenshot below,

How to Prevent Image Hotlinking in WordPress

Then hit on Generate .htaccess file. Your code will look something like this.

How to Prevent Image Hotlinking in WordPress

Now add Generated code to your .htaccess file. Here is a guide how to edit .htaccess file.

How to Prevent Image Hotlinking in WordPress

Congratulation! You’ve successfully disabled image hotlinking using the .htaccess file. Now no one will be able to hotlink your images.

2. Disable Image Hotlinking using Cloudflare

Cloudflare is a very popular Content Delivery Network (CDN) that allow you to disable image hotlinking from the dashboard.

First login to your Cloudflare account and click on the Scrape Shield tab.

How to Prevent Image Hotlinking in WordPress

Scroll down to Hotlink Protection section and turn on. It will keep your images safe from off-site linking.

How to Prevent Image Hotlinking in WordPress

In addition, If you have not yet installed SSL certificates on your site, you can also take advantage of Cloudflare Free SSL.

SSL certificates are very important to any site because Google is using it as a ranking factor.

3. Disable Image Hotlinking In WordPress With Plugins

There are many such WordPress plugins in the market that help to prevent image hotlinking. But Here I’ll use WordPress security plugins – All In One WP Security & Firewall plugin.

All In One WP Security & Firewall plugin is completly free and add great security and firewall to your site. The plugin also allows you to disable image hotlinking.

First, install and activate All In One WP Security & Firewall plugin on your site. Once activated navigate to WP Security >> Firewall >> Prevent Hotlinking and check the box of Prevent Image Hotlinking. You can see screenshot below,

How to Prevent Image Hotlinking in WordPress

4. Disable Image Hotlinking Using cPanel

You can also disable Image Hotlinking by going to cPanel. It comes with a built-in hotlink protection tool. Here is a guide on how to prevent image hotlinking using cPanel settings – Hotlink Protection.

That’s it all! Here I have shown you four different ways that will help you disable image hotlinking on your WordPress site.

Final Thought

Image hotlinking is not beneficial for many bloggers, and its direct impact falls on the performance and bandwidth of the site.

Thankfully, there are many easy methods for disabling hotlinking in WordPress. But I recommend you to disable it with the Cloudflare (if you use) or .htaccess file.

We’re done, and it’s now your turn! Find this article helpful? Don’t forget to share!

About AMAN SINGH

AMAN SINGH, who owns JustBrightMe, is a full-time blogger and loves sharing content on WordPress, SEO & Blogging Tips.

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Blog’s Popular Post

How To Increase Website Traffic in 2021 (54 Working Methods)

The Ultimate On-Page SEO Techniques

Best Autoptimize Settings Updated

Fix Submitted URL marked ‘noindex’ in Google Search Console Tool

How to Protect Your Website from Negative SEO

76 Best Free Responsive Blogger Templates

Rank Math SEO VS Yoast SEO Comparision

650+ High Domain Authority Sites to Get Dofollow Backlinks

How to Transfer SBI Account from One Branch to Another Branch

16 Free Ways to Promote Your Website

Blog’s Recent Post

How to Get Google to Instantly Index Your Website

How to Increase Domain Authority 2021

How to Change Name in Aadhar Card Online

How To Get Free Domain For Your Website

20 Ways How to Speed Up WordPress Site

How to Change Mobile Number in SBI

How to Unlock a PUK Blocked Sim Card

How to Remove Image Background Online in One Click

How to Block SBI ATM Card

How to Disable Windows Defender in Windows 10

Footer

SEO Guides

  • Learn SEO: A Beginner’s Guide to SEO
  • 40 Google Ranking Factors
  • How to Create Quality Backlinks
  • How to Improve Google Ranking
  • 23 Best On-Page SEO Techniques
  • How to Keyword Research for SEO
  • 29 Most Common SEO Mistakes to Avoid
  • How to Increase Domain Authority
  • Image SEO Tips You Need to Know
  • Keyword Density in SEO
  • Internal Linking for SEO
  • How to Protect Website from Negative SEO

WordPress Guides

  • How to Create a Blog on WordPress
  • Top 25 Must-have WordPress Plugins on Every Blog
  • 34 Best SEO Friendly WordPress Themes
  • 42 Most Common WordPress Mistakes to Avoid
  • How to Speed Up WordPress Site
  • 19 Essential Settings After Installing WordPress
  • 57 Best Responsive WordPress Themes
  • Top 41 Fast Loading WordPress Themes
  • How to Scan WordPress Site for Malware

Useful Guide

  • How To Increase Website Traffic (54 Working Methods)
  • A Complete Guide to Google Search Console
  • 20 Ways How to Reduce Bounce Rate
  • 46 Killer Blogging Tips for Beginners
  • How to Become a Successful Blogger
  • 50 Best SEO Tools (Ultimate List)
  • 16 Free Ways to Promote Your Website
  • 11 Best Blogging Platforms to Launch a Blog in 2020
  • How to Update Old Blog Posts (and Why You Should)

© 2021 · JUST BRIGHT ME

  • About us
  • Privacy Policy
  • Sitemap