Guides · Security headers

Referrer-Policy header

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

Whether the home page sends a Referrer-Policy response header, with any value. A <meta name="referrer"> tag is not read.

Why it matters

The Referer header tells the next site which page a visitor came from — sometimes including a path or query string that names an account, a search or a token. An explicit policy decides how much leaves the site instead of leaving it to each browser.

Which Referrer-Policy should I use, and how do I set it?

strict-origin-when-cross-origin sends the full URL within the site, only the origin to other HTTPS sites, and nothing to plain HTTP. Use no-referrer if other sites never need to know where traffic came from.

nginx

add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Apache (mod_headers)

Header always set Referrer-Policy "strict-origin-when-cross-origin"

Caddy

header Referrer-Policy "strict-origin-when-cross-origin"

Related tools

Other checks in Security headers

Security headers in the methodology ·All guides

This check is one step of the website launch checklist.

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.