Opt out of Federated Learning of Cohorts (FLoC)
As the Google has started testing the FLoC, we can preemptively set the “Permissions-Policy” HTTP response header on the codeberg.org website to disable being included in the user's list of sites for cohort calculation.
An alternative to this approach would be using the Content Security Policy (CSP) to blocks all the third-party content which can activate the cohort calculation from being loaded. But this method may introduce breaking changes to the user content.
From the EFF article:
FLoC calculates a label based on your browsing history. For the trial, Google will default to using every website that serves ads—which is the majority of sites on the web.
I understand that this header is not necessary for Codeberg and other ad-free websites? But I don't find any clarification on how websites are identified as using ads so it's probably better to send the header?
Here's some links for discussions of this issue on other projects:
Fwiw this is not blocking anything, just "asking nicely" not to get tracked...
We are setting the header globally now.
Deleting a branch is permanent. It CANNOT be undone. Continue?