Websites, domains and files

What is hotlinking?

Definition

Hotlinking is showing another site's image, video or file on your own page by linking straight to its file address. The file loads from the other site's server, so that site pays for the bandwidth and usually never agreed to it.

Also called: Inline linking, Bandwidth theft, Leeching, Direct linking

How does hotlinking work?

A page includes a tag, such as an image tag, whose source is a file on someone else's server. Every time a visitor loads that page, their browser fetches the file from the other server. The visitor sees it as part of your page, while the other site serves every copy.

For a small image the cost is minor. For a popular page, a video or a large download, it can add real bandwidth bills for the owner. The file can also vanish or change at any time, since the person hotlinking has no control over it, which is one cause of broken images and link rot.

Is hotlinking the same as embedding or linking?

No. A normal link sends the visitor to the owner's page. An embed uses a player or snippet the owner offers, so they stay in control. Hotlinking takes the raw file address and drops it into another page without asking.

The difference matters because the owner chooses what an embed shows and can turn it off. With a hotlink, they often only find out when their traffic or bill goes up. Showing someone else's images this way can also raise copyright questions, and many hosts ban it in their terms.

How do sites block hotlinking?

Most hosts check where a request comes from, or stop handing out permanent file addresses at all. The common methods:

  • Checking the Referer header and refusing the request, or sending a placeholder, when it comes from another site.
  • Serving files through signed URLs that expire after a short time, so a copied address stops working.
  • Sending every request through the host's own page or app, which checks the link's settings first.
  • Turning on hotlink protection at the CDN that delivers the files.
Linking, embedding and hotlinking
MethodWhere the file showsOwner in control?
Normal linkOn the owner's pageYes
Embed codeIn the owner's player or frame, on your pageYes, they can turn it off
HotlinkIn your page, loaded from their serverNo, and they pay for it

Hotlinking: common questions

Is hotlinking illegal?

It depends on where you are and what you show. It often breaks the host's terms, and showing someone else's copyrighted image can lead to a takedown request. The safe route is to ask, or to use files you have the rights to.

How do I know if someone is hotlinking my files?

Look in your server or CDN logs for file requests whose referrer is a site you don't know. A jump in bandwidth with no matching rise in page views is another sign.

Can hotlink protection be bypassed?

Referer checks can, because the header is easy to leave out or fake, which is why most rules let requests with no referrer through. Short-lived signed URLs are harder to reuse, because a copied address expires.

Is using a video site's embed code hotlinking?

No. That player is offered for this purpose, and the owner keeps control over it. Hotlinking means taking the raw file address instead.

What happens to a hotlinked image when the owner blocks it?

Your page shows a broken image or a placeholder the owner chose. That is why it is safer to host the files you use yourself.

Go deeper

Updated

Share a file as a link in seconds

Upload any file and get one clean link, with every setting on this page.

Try Link in Seconds

Optional cookies for analytics, ads and session replay.