Disable Topics API


This plugin adds an HTTP header to your WordPress website that disables Google’s Topics API tracking. The following header will be added:

Permissions-Policy: browsing-topics=()

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

More information about the Topics API and it’s predecessor “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?
Google’s Topics API: Rebranding FLoC Without Addressing Key Privacy Issues
The Topics API


This plugin has no settings. Simply install and activate it to exlude your website from Topics API calculations.


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

This plugin does not exclude you (as a user of the web) from Topics API 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.

Nota che esiste un problema noto con diversi plugin di caching delle pagine dove l’hook utilizzato da questo plugin non funziona. È un problema strutturale di WordPress ed è qualcosa di non semplice soluzione. Se l’header non viene correttamente aggiunto da questo plugin, la tuo opzione migliore è verificare se può essere fatto ad un altro dei possibili livelli. Oppure chiedere all’amministratore di sistema di farlo per te.

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


6 Maggio 2021
I’m installing this plugin over a bunch of sites on many different hosting providers. So far has worked flawlessly.
19 Aprile 2021 4 risposte
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');
16 Aprile 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 Aprile 2021
While I hope to see this in WordPress core soon, this is a great alternative.
Leggi tutte le recensioni di 7

Contributi e sviluppo

“Disable Topics API” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


“Disable Topics API” è stato tradotto in 9 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Disable Topics API” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog (registro delle modifiche)

1.3 (2022-01-29)

  • Modified the header to disable the new Topics API, since the FLoC experiment has officially ended.

1.2 (2021-04-18)

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

1.1 (2021-04-16)

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

1.0 (2021-04-14)

  • Initial release.