Check referrer information given out by the HTTP response headers.
Domsignal Referrer Policy Test tool allows you to quickly check if your website has a properly configured Referrer Policy header. This header is crucial for controlling the amount of information shared with referred websites.
When a user clicks a link on your website, their browser sends 'referrer' information to the destination site. This information reveals the previous page the user visited. The Referrer Policy header dictates how much of this information is shared.
It's a security and privacy feature that allows you to control the 'Referrer' HTTP response header.
There are two important reasons:
The following are common Referrer Policy options.
If you are using Apache HTTP on a cloud server, VPS or dedicated server where you have full access, you can add the following within VirtualHost
in httpd.conf
or apache2.conf
file.
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Save the file and restart the Apache web server.
And, for Nginx, you can add the following inside the server
block in nginx.conf
file.
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
Save the file and restart Nginx web server.
If you are on shared hosting, you can add the following .htaccess
file
<IfModule mod_headers.c>
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
You don’t need to restart anything when you modify .htaccess
file.
Make sure your website is in top shape with Domsignal - explore the suite of performance, SEO and security metrics testing tools now!