Inline linking (also known as hotlinking, piggy-backing, direct linking, offsite image grabs, bandwidth theft,
or leeching) is the practice of using or
embedding
In mathematics, an embedding (or imbedding) is one instance of some mathematical structure contained within another instance, such as a group (mathematics), group that is a subgroup.
When some object X is said to be embedded in another object Y ...
a linked object—often an image—from one
website
A website (also written as a web site) is any web page whose content is identified by a common domain name and is published on at least one web server. Websites are typically dedicated to a particular topic or purpose, such as news, educatio ...
onto a
webpage
A web page (or webpage) is a Web document that is accessed in a web browser. A website typically consists of many web pages linked together under a common domain name. The term "web page" is therefore a metaphor of paper pages bound together in ...
of another website. In this process, the second site does not
host
A host is a person responsible for guests at an event or for providing hospitality during it.
Host may also refer to:
Places
* Host, Pennsylvania, a village in Berks County
* Host Island, in the Wilhelm Archipelago, Antarctica
People
* ...
the object itself but instead loads it directly from the original source, creating an inline link to the hosting site.
HTTP and inline linking
The
Hypertext Transfer Protocol
HTTP (Hypertext Transfer Protocol) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, wher ...
(HTTP), the technology behind the
World Wide Web
The World Wide Web (WWW or simply the Web) is an information system that enables Content (media), content sharing over the Internet through user-friendly ways meant to appeal to users beyond Information technology, IT specialists and hobbyis ...
, does not differentiate between different types of links—all links are functionally equal. As a result, resources can be linked from any
server and loaded onto a
web page
A web page (or webpage) is a World Wide Web, Web document that is accessed in a web browser. A website typically consists of many web pages hyperlink, linked together under a common domain name. The term "web page" is therefore a metaphor of pap ...
regardless of their original location.
When a website is visited, the browser first downloads the HTML document containing the web page's textual content. This document may reference additional resources, including other HTML files, images, scripts, or
stylesheet. Within the HTML,
<img>
tags specify the
URLs of images to be displayed on the page. If the
<img>
tag does not specify a server, the
web browser
A web browser, often shortened to browser, is an application for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's scr ...
assumes that the image is hosted on the same server as the parent page (e.g.,
<img src="picture.jpg" />
). If the
<img>
tag contains an absolute URL, the browser retrieves the image from an external server (e.g.,
<img src="http://www.example.com/picture.jpg" />
).
When a browser downloads an HTML page containing such an image, the browser will contact the remote server to request the image content.
Common uses
The ability to display content from one site within another is part of the original design of the Web's
hypertext
Hypertext is E-text, text displayed on a computer display or other electronic devices with references (hyperlinks) to other text that the reader can immediately access. Hypertext documents are interconnected by hyperlinks, which are typic ...
medium. Common uses include:
* Avoiding
copyright infringement
Copyright infringement (at times referred to as piracy) is the use of Copyright#Scope, works protected by copyright without permission for a usage where such permission is required, thereby infringing certain exclusive rights granted to the c ...
: it is copyright infringement to make copies of a work for which the person making copies has no license, but there is no infringement when the re-user provides a simple text link within an HTML document that points to the location of the original image or file (simply called a "link").
* Web architects may deliberately segregate the images of a site on one server or a group of servers. Hosting images on separate servers allows the site to divide the bandwidth requirements between servers. As an example, the high-volume site
Slashdot
''Slashdot'' (sometimes abbreviated as ''/.'') is a social news website that originally billed itself as "News for Nerds. Stuff that Matters". It features news stories on science, technology, and politics that are submitted and evaluated by site ...
stores its "front page" at
slashdot.org
, individual stories on servers such as
games.slashdot.org
or
it.slashdot.org
, and serves images for each host from
images.slashdot.org
.
* An article on one site may choose to refer to copyrighted images or content on another site via inline linking, which may avoid rights and ownership issues that copying the original files could raise. However, this practice is generally discouraged due to resulting bandwidth loading of the source, and the source provider is often offended because the viewer is not seeing the whole original page, which provides the intended context of the image.
* Many web pages include
banner ad
A web banner or banner ad is a Online Advertising, form of advertising on the World Wide Web delivered by an ad server. This form of online advertising entails embedding an advertisement into a web page. It is intended to attract web traffic, tra ...
s. Banner ads are images hosted by a company that acts as middleman between the advertisers and the websites on which the ads appear. The
<img>
tag may specify a URL to a
CGI script on the ad server, including a string uniquely identifying the site producing the traffic, and possibly other information about the person viewing the ad, previously collected and associated with a cookie. The CGI script determines which image to send in response to the request.
* Some websites hotlink from a faster server to increase client loading speed.
*
Hit counter
A web counter or hit counter is a publicly displayed running tally of the number of visits a webpage has received.
Web counters are usually displayed as an inline digital image or in plain text. Image rendering of digits may use a variety of ...
s or
Web counters show how many times a page has been loaded. Several companies provide hit counters that are maintained off site and displayed with an inline link.
Controversial uses
The blurring of boundaries between sites can lead to other problems when the site violates users' expectations. Other times, inline linking can be done for malicious purposes.
* Content sites where the object is stored and from which it is retrieved may not like the new placement.
* Inline linking to an image stored on another site increases the bandwidth use of that site even though the site is not being viewed as intended. The complaint may be the loss of ad revenue or changing the perceived meaning through an unapproved context.
*
Cross-site scripting
Cross-site scripting (XSS) is a type of security vulnerability that can be found in some web applications. XSS attacks enable attackers to inject client-side scripts into web pages viewed by other users. A cross-site scripting vulnerability may be ...
and
phishing
Phishing is a form of social engineering and a scam where attackers deceive people into revealing sensitive information or installing malware such as viruses, worms, adware, or ransomware. Phishing attacks have become increasingly sophisticate ...
attacks may include inline links to a legitimate site to gain the confidence of a victim.
* Pay-per-content services may attempt to restrict access to their content through complex scripting and inline linking techniques.
* Inline objects can be used to perform
drive-by attacks on the
client, exploiting
faults in the code that interprets the objects. When an object is stored on an external server, the referring site has no control over if and when an originally beneficial object's content is replaced by malicious content.
* The requests for inline objects usually contain the
referrer information. This leaks information about the browsed pages to the servers hosting the objects (see
web visitor tracking
Web tracking is the practice by which operators of websites and third parties collect, store and share information about visitors' activities on the World Wide Web. Analysis of a user's behaviour may be used to provide content that enables the op ...
).
Prevention
Client side
Most web browsers will blindly follow the URL for inline links, even though it is a frequent security complaint. Embedded images may be used as a
web bug
A web beaconAlso called web bug, tracking bug, tag, web tag, page tag, tracking pixel, pixel tag, 1×1 GIF, spy pixel, or clear GIF. is a technique used on web pages and email to unobtrusively (usually invisibly) allow checking that a user has ...
to track users or to relay information to a third party. Many
ad filtering
Ad blocking (or ad filtering) is a software capability for blocking or altering online advertising in a web browser, an application or a network. This may be done using browser extensions or other methods or browsers with inside blocking.
Hist ...
browser tools will restrict this behavior to varying degrees.
Server side
Some servers are programmed to use the
HTTP referer header to detect hotlinking and return a condemnatory message, commonly in the same format, in place of the expected image or media clip. Most servers can be configured to partially protect hosted media from inline linking, usually by not serving the media or by serving a different file.
URL rewriting
In web applications, a rewrite engine is a software component that performs rewriting on URLs (Uniform Resource Locators), modifying their appearance. This modification is called URL rewriting. It is a way of implementing URL mapping or routin ...
is often used (e.g., mod_rewrite with
Apache HTTP Server
The Apache HTTP Server ( ) is a free and open-source software, free and open-source cross-platform web server, released under the terms of Apache License, Apache License 2.0. It is developed and maintained by a community of developers under the ...
) to reject or redirect attempted hotlinks to images and media to an alternative resource. Most types of electronic media can be redirected this way, including video files, music files, and animations (such as
Flash).
Other solutions usually combine
URL rewriting
In web applications, a rewrite engine is a software component that performs rewriting on URLs (Uniform Resource Locators), modifying their appearance. This modification is called URL rewriting. It is a way of implementing URL mapping or routin ...
with some custom complex server side scripting to allow hotlinking for a short time, or in more complex setups, to allow the hotlinking but return an alternative image with reduced quality and size and thus reduce the bandwidth load when requested from a remote server. All hotlink prevention measures risk deteriorating the user experience on the third-party website.
Copyright issues raised by inline linking
The most significant legal fact about inline linking, relative to copyright law considerations, is that the inline linker does not place a copy of the image file on its own Internet server. Rather, the inline linker places a pointer on its Internet server that points to the server on which the proprietor of the image has placed the image file. This pointer causes a user's browser to jump to the proprietor's server and fetch the image file to the user's computer. US courts have considered this a decisive fact in copyright analysis. Thus, in ''
Perfect 10, Inc. v. Amazon.com, Inc.
''Perfect 10, Inc. v. Amazon.com, Inc.'', 508 F.3d 1146 (9th Cir., 2007) was a case in the United States Court of Appeals for the Ninth Circuit involving a copyright infringement claim against Amazon.com, Amazon.com, Inc. and Google, Google, Inc ...
'',
[487 F.3d 701 (9th Cir. 2007).] the
United States Court of Appeals for the Ninth Circuit
The United States Court of Appeals for the Ninth Circuit (in case citations, 9th Cir.) is the U.S. federal court of appeals that has appellate jurisdiction over the U.S. district courts for the following federal judicial districts:
* Distric ...
explained why inline linking did not violate US copyright law:
Google does not...display a copy of full-size infringing photographic images for purposes of the Copyright Act when Google frames in-line linked images that appear on a user's computer screen. Because Google's computers do not store the photographic images, Google does not have a copy of the images for purposes of the Copyright Act. In other words, Google does not have any "material objects...in which a work is fixed...and from which the work can be perceived, reproduced, or otherwise communicated" and thus cannot communicate a copy. Instead of communicating a copy of the image, Google provides HTML instructions that direct a user's browser to a website publisher's computer that stores the full-size photographic image. Providing these HTML instructions is not equivalent to showing a copy. First, the HTML instructions are lines of text, not a photographic image. Second, HTML instructions do not themselves cause infringing images to appear on the user's computer screen. The HTML merely gives the address of the image to the user's browser. The browser then interacts with the computer that stores the infringing image. It is this interaction that causes an infringing image to appear on the user's computer screen. Google may facilitate the user's access to infringing images. However, such assistance raised only contributory liability issues and does not constitute direct infringement of the copyright owner's display rights. ...While in-line linking and framing may cause some computer users to believe they are viewing a single Google webpage, the Copyright Act...does not protect a copyright holder against uchacts....
See also
*
Copyright aspects of hyperlinking and framing
In copyright law, the legal status of hyperlinking (also termed "linking") and that of framing concern how courts address two different but related Web technologies. In large part, the legal issues concern use of these technologies to create or f ...
*
Deep linking
References
{{Authority control
Internet terminology
File sharing
Hypertext
Internet ethics