In the world of web design, it’s tempting to simply link to an image on another website instead of hosting it on your own server. This is known as using an external image, or ‘hotlinking’. While it may seem like a harmless shortcut, hotlinking can be a major drain on the other website’s server resources, and it can also open you up to a host of problems. This guide will explore the dangers of hotlinking and why it’s always best to host your own images.

Think of hotlinking as borrowing your neighbor’s lawnmower without asking. While you may get your lawn mowed, you’re using up their gas and putting wear and tear on their machine. In the world of the web, this can lead to slow page load times for the other website, and it can even cause their site to go down if enough people are hotlinking to their images. For a deeper dive into the importance of a well-behaved website, see our article on errors. You can also learn about internal images and browse the full list of External Pages category pages.

An illustration of a website 'stealing' an image from another website, symbolizing the concept of hotlinking.

Your Guide to a More Secure and Stable Website

The best way to avoid the problems associated with hotlinking is to simply host your own images. Here are some of the key benefits of hosting your own images:

  • You’re in Control: When you host your own images, you’re in complete control of them. You can optimize them for performance, add your own branding, and ensure that they’re always available.
  • You’re Not Stealing Bandwidth: By hosting your own images, you’re not putting a strain on other people’s servers. This is just good web etiquette.
  • You’re Protected from Broken Images: If the other website decides to move or delete the image you’re hotlinking to, you’ll be left with a broken image on your site. By hosting your own images, you can avoid this problem.

The SEO Power of Self-Hosted Images

From an SEO perspective, hosting your own images is always the best practice. It gives you more control over your on-page SEO, and it can also help to improve your page load speed. For more on the importance of a fast and efficient website, check out this guide to web performance from Google.

Don’t be a bandwidth bandit. By taking the time to host your own images, you can create a more secure, stable, and successful website. For more on how to create a winning on-page strategy, see our article on on-page SEO. For another great resource on hotlinking, check out this article from Ahrefs.

An illustration of a secure server with images on it, symbolizing the benefits of hosting your own images.

Frequently Asked Questions

Is hotlinking illegal?

While hotlinking is not illegal, it is a violation of copyright and can be a major drain on your server resources. It’s always best to host your own images.

How can I tell if my images are being hotlinked?

You can check your server logs to see if other websites are linking to your images. You can also use an SEO audit tool like Creeper to identify instances of hotlinking.

What is the best way to prevent hotlinking?

The most effective way to prevent hotlinking is to add a snippet of code to your .htaccess file that blocks requests from other domains. You can also use a content delivery network (CDN) to protect your images.

Are you a bandwidth bandit? Start your Creeper audit today and make sure you’re not hotlinking to external images.