This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9578|Reply: 0

[HTML/HTML5] A brief introduction to the Meta referrer tag

[Copy link]
Posted on 10/11/2019 11:23:49 AM | | |
In some cases, this referer metadata parameter can be used when a website wants to control the referer information that a page sends to the server for a number of reasons.

Control referer with the Referer Meta tag—detailed referrer-policy
https://www.itsvse.com/thread-5077-1-1.html
(Source: Architect_Programmer)

parameter

The metedata property of the referer can set the content property value to the following collection:

  • never
  • always
  • origin


outcome

If the value of referer-policy is never: remove the referrer in http head;
If the value of referer-policy is default: If the current page uses the https protocol and the resource to be loaded uses the normal http protocol, set the HTTP header to empty.
If the value of referer-policy origin: only sends the origin part;
If the value of referer-policy is always: do not change the value of the referer in the http header;

For example

If the page contains the following meta tags, all requests from the current page will not carry the > referer:<meta name="referrer" content="never"

If the page contains the following meta tag, HTTP requests from the current page will only carry the origin part: <meta name="referrer" content="origin">







Previous:Data Recovery Technology Demystified (2nd Edition) with Table of Contents Full Version PDF
Next:A collection of the first volume of the first volume of the Ah Guo Internet Essay [Audio version has been completed]
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com