Set proper referrer policy for your blog on Netlify
If you are hosting your blog on Netlify (like me currently), then you should take into account, that Netlify is using same-origin referrer policy for all sites by default. This means that Referer header won't be passed for cross-origin requests. For public blogs this is not optimal and I recommend you to set referrer policy to no-referrer-when-downgrade. This improves visibility of your blog and allows owners of other sites to see that you are referring to them.
This rule applies not only to blogs, but in general to any sites, where you often refer to external sources.
If you need more fine-grained control over external links, you can always set rel="noreferrer" attribute on them.
Example of setting policy via HTTP header in netlify.toml file:
[[headers]]
for = "/*"
[headers.values]
Referrer-Policy = "no-referrer-when-downgrade"
- ← Previous post: Fix image optimization not working in NextJS in Docker