Adds a specific header to every response to disable Google's usage of your site in it's FLoC tracking method.
A bundle for Symfony 5 that adds a
Permissions-Policy header in all the
responses to prevent the use of new Google's "Federated Learning of Cohorts"
tracking method, namely FLoC.
Basically, it adds a specific header to every response to disable Google's usage of your site in it's FLoC tracking method.
For better performance, it is advised to edit the
.htaccess or alter the
If an existing
Permissions-Policy header is found, the bundle will not change
The added headers is:
composer require loophp/go-unfloc-yourself-bundle
Once installed, there is nothing else to do.
- What is Federated Learning of Cohorts (FLoC)?
- Federated Learning of Cohorts (FLoC)
- Google’s FLoC Is a Terrible Idea
- Block FLoC With Duckduckgo
- Am I FLoCed?
- Pi-Hole - Network-wide Ad Blocking
Every time changes are introduced into the library, Github run the tests.
The library has tests written with PHPSpec.
Feel free to check them out in the
spec directory. Run
composer phpspec to
trigger the tests.
Before each commit some inspections are executed with GrumPHP, run
composer grumphp to check manually.
The quality of the tests is tested with Infection a PHP Mutation testing
composer infection to try it.
Feel free to contribute by sending Github pull requests. I'm quite reactive :-)
For more detailed changelogs, please check the release changelogs.