kids encyclopedia robot

Hotlinking facts for kids

Kids Encyclopedia Facts

Hotlinking is an internet term. It means displaying an image on a website by linking to the website hosting the image. The link gets the source data of the picture each time it is needed.

This avoids having the image on every website which uses it. So, a website owner uses a link to the picture such as http://example.com/picture.jpg. When the hotlinking website is loaded, the image is loaded from the original website, which uses its bandwidth, so it costs the hotlinked website money. For this reason many website owners use .htaccess files to prevent hotlinking. In some cases website owners use the .htaccess file to replace any hotlinked images with an offensive image to deter any other website owners from hotlinking. Hotlinked images are usually hosted on sites like imgur.

The original image may be owned by the original website. It might be wrong to make a copy of the original image file for use on a different web page, without being careful to get proper permission.

Hotlinking can also be used for file types other than images, including documents and videos.

LETS UNDERSTAND IT WITH AN EXAMPLE

Hotlinking is known as the act of stealing someone's bandwidth by linking directly to their website's assets, such as images or videos. For example, let's say the owner of website A is hosting a particular image on their server. The owner of website B sees that image and decides he wants it featured on his website as well. However, instead of downloading the image and hosting it on his own server, the owner of website B links directly to website A's domain. Therefore, instead of linking to the image via their own domain such as:

  • https://websiteB.com/path/to/image.jpg

They would be instead using website A's domain:

  • https://websiteA.com/path/to/image.jpg

Hotlinking someone's website assets can vastly increase their hosting costs. This article will highlight ways you can avoid hotlinking another website's assets if you are a web user and how to protect against hotlinking if you are a website owner.

How to avoid hotlinking

As a website user you should always try to avoid hotlinking assets from other websites. Doing so helps ensure that the original owner of the asset won't incur unnecessary charges and that the asset that you link to won't be unaccessible given that the owner implements hotlink protection or removes the asset. The following are a couple of solutions for avoiding hotlinking.

  • Host the assets on your own server. If you have found an image from another website and you would like to use it on your own website, you can upload the image directly to your server and deliver it from there. Doing this will also increase the delivery speed of the asset as the browser does not need to perform an additional DNS lookup.
  • Use a third party host. Using images as an example again, if you find an image that you want to link to but don't have a server to upload it to, you can use a third party host. An image hosting service such as imgur for example will allow you to upload your image and link to it directly within your website or any other location.

In both cases, ensure that you have the proper authority to use someone else's assets (e.g. the owner has given you permission or the asset is part of a creative commons license)

See also

Kids robot.svg In Spanish: Hotlinking para niños

kids search engine
Hotlinking Facts for Kids. Kiddle Encyclopedia.