Disable FLoC

Descripción

This plugin adds an HTTP header to your WordPress website that disables Google’s «Federated Learning of Cohorts» tracking. The following header will be added:

Permissions-Policy: interest-cohort=()

If an existing ‘interest-cohort’ value is found, the plugin will not change that value or add an additional one.

More information about FLoC can be found here:

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?

Instalación

This plugin has no settings. Simply install and activate it to exlude your website from FLoC tracking.

FAQ

I’m not using Chrome, why would I use this plugin?

This plugin does not exclude you (as a user of the web) from FLoC tracking. It excludes your website, and thus protects your website’s visitors. Many of them will probably use Chrome.

How can I check if this plugin works?

This plugin attempts to add an HTTP header. You can use your browser’s Dev Tools to check whether it gets added properly.

  • Visit any page on your site using the browser of your choice.
  • Press F12, or right-click anywhere on the page and click «Inspect element».
  • Switch to the network tab in the newly opened development tools pane.
  • Turn on recording (if it’s not already active), and reload the page.
  • You’ll see a number of requests appear as a list. The top one is usually the page itself.
  • Click that line to open up its properties.
  • Look for the header under «Response headers».

I’ve also set up an online FLoC header checker. Simply enter your website’s homepage URL to see of the header is present.

I don’t see the header, what could be wrong?

HTTP headers can get added and/or removed on many levels in the server stack.

  • By WordPress itself (which is what this plugin attempts).
  • By the web server (NGINX, Apache, etc).
  • By caching layers, proxies, etc.

Please note that there’s a known issue with many page caching plugins where the ‘hook’ that this plugin uses does not work. This is a fundamental issue in WordPress and not something that’s easy to work around. If the header does not get added by this plugin, your best option is to see if it can be added on one of the other levels. Or ask your system administrator to do this for you.

If you’re using WP Super Cache, make sure the ‘Cache HTTP headers with page content’ option is checked.

Reseñas

6 de mayo de 2021
I'm installing this plugin over a bunch of sites on many different hosting providers. So far has worked flawlessly.
19 de abril de 2021
If you do not want to use a plugin, just add the following lines to your function.php function disable_floc($headers) { $headers['Permissions-Policy'] = 'interest-cohort=()'; return $headers; } add_filter('wp_headers', 'disable_floc');
18 de abril de 2021
Works fine, and is a nice easy way to tell Google that FLoc is not welcome here.
16 de abril de 2021
After reading about Federated Learning of Cohorts (FLoC), I knew I wanted my site pages excluded from FLoC analysis. Thanks for making this so easy to implement. Added your plugin to my site this morning, confirmed the setting, and it's good to go.
15 de abril de 2021
While I hope to see this in WordPress core soon, this is a great alternative.
Leer todas las 7 reseñas

Colaboradores y desarrolladores

«Disable FLoC» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Disable FLoC» ha sido traducido a 6 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce «Disable FLoC» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.2

  • Added support for WP Super Cache when the ‘Cache HTTP headers with page content’ option is checked.

1.1

  • Code refactor, including some fixes.
  • Added an FAQ to the readme.txt.

1.0

  • Initial release.