If you're using Firefox, the Smart Referer add-on strips out the HTTP Referer and the value of document.referer (in JavaScript) from cross-domain requests. It includes a default whitelist, and is customizable.
https://addons.mozilla.org/en-US/firefox/addon/smart-referer
It's also open source.
https://gitlab.com/smart-referer/smart-referer
This extension is most effective if you also use an ad blocker (like uBlock Origin) and Firefox's first-party isolation feature, although Smart Referer will still help prevent tracking even if you don't.
https://www.ghacks.net/2017/11/22/how-to-enable-first-party-...