When visiting a web page, the referrer or referring page is the URL of the previous web page from which a link was followed. More generally, a referrer is the URL of a previous item which led to this request. For example, the referrer for an image is generally the
HTML page on which it is to be displayed. The referrer field is an optional part of the HTTP request sent by the
web browser to the web server. Many websites log referrers as part of their attempt to
track their users. Most
web log analysis software can process this information. Because referrer information can violate
privacy, some web browsers allow the user to disable the sending of referrer information. Some
proxy and
firewall software will also filter out referrer information, to avoid leaking the location of non-public websites. This can, in turn, cause problems: some web servers block parts of their website to web browsers that do not send the right referrer information, in an attempt to prevent
deep linking or unauthorised use of images (
bandwidth theft). Some proxy software has the ability to give the top-level address of the target website as the referrer, which reduces these problems but can still in some cases divulge the user's last-visited web page. Many blogs publish referrer information in order to link back to people who are linking to them, and hence broaden the conversation. This has led, in turn, to the rise of
referrer spam: the sending of fake referrer information in order to popularize the spammer's website. It is possible to access the referrer information on the client side using document.referrer in
JavaScript. This can be used, for example, to individualize a web page based on a user's search engine query. However, the referrer field does not always include search keywords, such as when using
Google Search with HTTPS. == Referrer hiding ==