You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

4 years ago
  1. +++
  2. title = "Referrer Policy"
  3. description = "Specify how much info is passed to external links."
  4. categories = ["security"]
  5. tags = ["privacy", "security", "SEO", "metadata"]
  6. features = ["related content", "code highlighter", "snippets"]
  7. [[copyright]]
  8. owner = "Josh Habdas"
  9. date = "2019"
  10. license = "agpl-3.0-or-later"
  11. +++
  12. After Dark adds a {{< external href="https://w3c.github.io/webappsec-referrer-policy/" text="Referrer Policy" />}} to improve site security and increase visitor privacy beyond browser defaults using a simple site-wide policy.
  13. Adjust the site-wide default of `same-origin` from {{< external href="https://gohugo.io/getting-started/configuration/" text="Site Configuration" />}}:
  14. ```toml
  15. [params.seo]
  16. referrer = "same-origin"
  17. ```
  18. Relax the security policy by:
  19. - Adjusting the site-wide default;
  20. - Using the `referrerpolicy` attribute of the [External Shortcode](/shortcode/external);
  21. - Using a {{< external href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-delivery-nested" text="nested browsing context" />}} to adjust contextually.
  22. See {{< external href="https://w3c.github.io/webappsec-referrer-policy/" text="Referrer Policy on W3C" />}} for a list of possible values.