PHPackages                             loophp/go-unfloc-yourself-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. loophp/go-unfloc-yourself-bundle

AbandonedArchivedSymfony-bundle[Security](/categories/security)

loophp/go-unfloc-yourself-bundle
================================

Adds a specific header to every response to disable Google's usage of your site in it's FLoC tracking method.

1.0.0(5y ago)36MITPHPPHP &gt;= 7.2.5

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/loophp/go-unfloc-yourself-bundle)[ Packagist](https://packagist.org/packages/loophp/go-unfloc-yourself-bundle)[ Docs](http://github.com/loophp/go-unfloc-yourself-bundle)[ GitHub Sponsors](https://github.com/drupol)[ Fund](https://www.paypal.me/drupol)[ RSS](/packages/loophp-go-unfloc-yourself-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/116c64b8c476e26ded2495fb0ca7fefcd68cdc42eb9626f4d48935dd41c69cce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/go-unfloc-yourself-bundle)[![GitHub stars](https://camo.githubusercontent.com/4d48c105c5e822f8260e8af51670427f89cfa65eb02a4bdbf5fc3bb62ae284c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/go-unfloc-yourself-bundle)[![Total Downloads](https://camo.githubusercontent.com/d500c76ba6e1301df68c9fd4212f6e8861f9812c132f1fb9969559f52d2a9b2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/go-unfloc-yourself-bundle)[![GitHub Workflow Status](https://camo.githubusercontent.com/a7f7426ed7d16532a2a25bed34f33ecb407e447c165db58f52ef49d989603975/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652f556e697425323074657374733f7374796c653d666c61742d737175617265)](https://github.com/loophp/go-unfloc-yourself-bundle/actions)[![Scrutinizer code quality](https://camo.githubusercontent.com/b357029a441ab58dd8094156faa8a37ea3ceae31ed40863a2ac20f6878d195e9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/go-unfloc-yourself-bundle/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/6d14343913c34e0bfe4f2397028296772269ff10bb6c7b1a959e099d1a5c548d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f7374796c653d666c61742d73717561726526636f6c6f723d636f6c6f72266c6162656c3d54797065253230636f7665726167652671756572793d6d6573736167652675726c3d687474707325334125324625324673686570686572642e6465762532466769746875622532466c6f6f706870253246676f2d756e666c6f632d796f757273656c662d62756e646c65253246636f766572616765)](https://shepherd.dev/github/loophp/go-unfloc-yourself-bundle)[![Code Coverage](https://camo.githubusercontent.com/200157000e0ec18abf2db4a29b8c83a0e4392889daae2f29c4a9f1aaa905fe5d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/go-unfloc-yourself-bundle/?branch=master)[![License](https://camo.githubusercontent.com/6e55de226a2de9136751bbbc15e9467162c1d8c57705afad92533b5c36557dad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6f7068702f676f2d756e666c6f632d796f757273656c662d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/go-unfloc-yourself-bundle)[![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/drupol)[![Donate!](https://camo.githubusercontent.com/cd335a74177c62640acfbb95db4f1848f818606fdf17dc36aed4eef93061dc10/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d50617970616c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.paypal.me/drupol)

Go Unfloc Yourself
==================

[](#go-unfloc-yourself)

Description
-----------

[](#description)

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](https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea).

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 webserver configuration.

Features
--------

[](#features)

If an existing `Permissions-Policy` header is found, the bundle will not change that value.

The added headers is: `Permissions-Policy: interest-cohort=()`

Installation
------------

[](#installation)

`composer require loophp/go-unfloc-yourself-bundle`

Usage
-----

[](#usage)

Once installed, there is nothing else to do.

Interesting links
-----------------

[](#interesting-links)

- [What is Federated Learning of Cohorts (FLoC)?](https://web.dev/floc/)
- [Federated Learning of Cohorts (FLoC)](https://github.com/WICG/floc)
- [Google’s FLoC Is a Terrible Idea](https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea)
- [Block FLoC With Duckduckgo](https://spreadprivacy.com/block-floc-with-duckduckgo/)
- [Am I FLoCed?](https://www.eff.org/deeplinks/2021/04/am-i-floced-launch)
- [Pi-Hole - Network-wide Ad Blocking](https://pi-hole.net/)

Code quality, tests and benchmarks
----------------------------------

[](#code-quality-tests-and-benchmarks)

Every time changes are introduced into the library, [Github](https://github.com/loophp/go-unfloc-yourself-bundle/actions) run the tests.

The library has tests written with [PHPSpec](http://www.phpspec.net/). 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](https://github.com/phpro/grumphp), run `composer grumphp` to check manually.

The quality of the tests is tested with [Infection](https://github.com/infection/infection) a PHP Mutation testing framework, run `composer infection` to try it.

Static analyzers are also controlling the code. [PHPStan](https://github.com/phpstan/phpstan) and [PSalm](https://github.com/vimeo/psalm) are enabled to their maximum level.

Contributing
------------

[](#contributing)

Feel free to contribute by sending Github pull requests. I'm quite reactive :-)

If you can't contribute to the code, you can also sponsor me on [Github](https://github.com/sponsors/drupol) or [Paypal](https://www.paypal.me/drupol).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](https://github.com/loophp/go-unfloc-yourself-bundle/blob/master/CHANGELOG.md) for a changelog based on [git commits](https://github.com/loophp/go-unfloc-yourself-bundle/commits/master).

For more detailed changelogs, please check [the release changelogs](https://github.com/loophp/go-unfloc-yourself-bundle/releases).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1845d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a5b33672e6fed2f03fee680279b6bddb884ca494237764e8c4dbb2c77e8bf05?d=identicon)[drupol](/maintainers/drupol)

---

Top Contributors

[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (8 commits)")

---

Tags

adflocgoogletrackinggoogletrackingadFLoC

### Embed Badge

![Health badge](/badges/loophp-go-unfloc-yourself-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/loophp-go-unfloc-yourself-bundle/health.svg)](https://phpackages.com/packages/loophp-go-unfloc-yourself-bundle)
```

###  Alternatives

[fourlabs/gamp-bundle

Google Analytics Measurement Protocol bundle for Symfony

31425.2k](/packages/fourlabs-gamp-bundle)[phelium/recaptcha

reCAPTCHA v2 class

4389.4k](/packages/phelium-recaptcha)[samcleaver/phpgsb

PHP Google Safe Browsing

4215.5k](/packages/samcleaver-phpgsb)[cakephp-fr/recaptcha

To easily use Google Recaptcha (free CAPTCHA service that protect websites from spam and abuse) in CakePHP projects

1419.3k](/packages/cakephp-fr-recaptcha)[cake17/cakephp-recaptcha

\[DEPRECIATED\] Please use https://github.com/cakephp-fr/recaptcha/

1211.0k1](/packages/cake17-cakephp-recaptcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
