Guide

Guide on Checking and Configuring the Referrer-Policy Header

Updated December 2026

To check and set the Referrer-Policy header, you first need to verify its presence on your website and then configure it to match your security needs. This process protects user data by controlling how much information browsers share when navigating pages.

Ensuring a correct Referrer-Policy is crucial for UK small business owners to maintain online privacy and trust. Providing clear steps, this guide helps you verify and set your Referrer-Policy header effectively.

Follow the steps outlined here to make sure your website's Referrer-Policy is in place and correctly configured, strengthening your site’s security controls.

Run my free security check about 10 seconds, no account needed

Step 1: Verify the Current Referrer-Policy Header

Begin by checking if your website already includes a Referrer-Policy header. Use online tools like the free EB Security checker to scan your site easily and view the header's current status.

Check for the presence and value of the Referrer-Policy header in the scan results. This will help identify if any adjustments are necessary for better security.

Step 2: Decide on the Appropriate Referrer-Policy Setting

Choose a Referrer-Policy setting based on your privacy goals. Options range from 'no-referrer', which sends no referrer information, to 'unsafe-url', which sends the full URL.

Consider the implications of each policy: stricter settings offer more privacy, while permissive policies may aid in analytics tracking.

Step 3: Modify the Referrer-Policy Header in Your Server Configuration

To set or adjust the Referrer-Policy, access your server's configuration files. The method varies depending on your server type (e.g., Apache, Nginx).

Insert or update the Referrer-Policy directive to reflect your desired setting. Be sure to save changes and restart your server for adjustments to take effect.

  • Apache: Add 'Header set Referrer-Policy "no-referrer"' to .htaccess.
  • Nginx: Add 'add_header Referrer-Policy "no-referrer";' to the server block.

Free, instant, no account

See your site's security grade in seconds.

Free, instant, and no account needed to see your grade.

Scan my site free

Plain-English A to E grade in about 10 seconds. No account needed to see it.

Step 4: Test the Implemented Referrer-Policy Header

After configuration, verify that your Referrer-Policy header is correctly set by re-scanning your site with the EB Security tool or another reliable checker.

Ensure the scan reflects the intended policy and observe any changes in referrer information when accessing your site from browsers.

Why is a Referrer-Policy Important for Your Website?

A proper Referrer-Policy safeguards sensitive referrer information, enhancing user privacy and preventing potential data leakage.

For UK businesses, setting an appropriate policy helps in compliance with privacy regulations and fosters customer trust by demonstrating a commitment to data protection.

To check and set your Referrer-Policy header, verify its current state using a tool like EB Security, choose an appropriate policy, update your server settings, and test its implementation for enhanced website security.

Common questions

How do I know if my site has a Referrer-Policy header?
You can use the EB Security free checker to scan your site. It will identify and report on the presence and configuration of your Referrer-Policy header.
What is the safest Referrer-Policy setting?
The 'no-referrer' policy is the safest. It prevents any referrer data from being sent, offering the highest level of privacy for users.
Why can't the scanner set my Referrer-Policy header for me?
The EB Security scanner performs non-intrusive external checks only. Setting headers requires direct access to server configuration files, which the scanner doesn't do.
Is a Referrer-Policy the same as an HTTPS policy?
No, they serve different purposes. HTTPS secures the data in transit, while Referrer-Policy controls referrer information sent between pages.
Can incorrect Referrer-Policy settings affect my site's performance?
Yes, overly restrictive policies might hinder analytics and tracking, but a well-balanced setting protects privacy without impacting functionality.

Keep exploring

Check security headers

Add security headers

X-Content-Type-Options Explained

Permissions Policy Explained

Free, instant, no account

Check your website now, free.

A free, plain-English A to E grade in about 10 seconds, with monthly monitoring if you want it.

Scan my site free

Plain-English A to E grade in about 10 seconds. No account needed to see it.