Title: Disable Topics API
Author: WP Chill
Published: <strong>15 Tháng 4, 2021</strong>
Last modified: 11 Tháng 2, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/disable-floc/assets/icon-256x256.png?rev=2515344)

# Disable Topics API

 Bởi [WP Chill](https://profiles.wordpress.org/wpchill/)

[Tải về](https://downloads.wordpress.org/plugin/disable-floc.1.3.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/disable-floc/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/disable-floc/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/disable-floc/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/disable-floc/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/disable-floc/)

## Mô tả

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)?](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) [Google’s Topics API: Rebranding FLoC Without Addressing Key Privacy Issues](https://brave.com/web-standards-at-brave/7-googles-topics-api/)
[The Topics API](https://github.com/jkarlin/topics)

## Cài đặt

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

## Hỏi đáp

### 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](https://tanck.nl/floc-check). 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.

### Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the Disable Topics API plugin
through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/680326cb-79a1-44cb-8cde-7e528611039d).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.”

## Đánh giá

![](https://secure.gravatar.com/avatar/52b117ab992fdb004158a53c03b242197e48bfc6de6e7e6a0e55d41d39c43a60?
s=60&d=retro&r=g)

### 󠀁[Must have if you are concerned Googles take on privacy](https://wordpress.org/support/topic/must-have-if-you-are-concerned-googles-take-on-privacy/)󠁿

 [Bianca](https://profiles.wordpress.org/bianca205/) 4 Tháng 6, 2021

Thanks Roy for making the internet a little bit better.

![](https://secure.gravatar.com/avatar/aa662724626eb1fe69d8efbc8da138816a7c75938cc77ecbed5dd7c067b31e9b?
s=60&d=retro&r=g)

### 󠀁[works like magic!](https://wordpress.org/support/topic/works-like-magic-50/)󠁿

 [kOoLiNuS](https://profiles.wordpress.org/koolinus/) 6 Tháng 5, 2021

I’m installing this plugin over a bunch of sites on many different hosting providers.
So far has worked flawlessly.

![](https://secure.gravatar.com/avatar/13336b04f4fbcbc1e060f35b0b8b8d7013e4951be9481a818c0f2645338cb99e?
s=60&d=retro&r=g)

### 󠀁[do it without a plugin](https://wordpress.org/support/topic/do-it-without-a-plugin/)󠁿

 [georg](https://profiles.wordpress.org/georgp/) 19 Tháng 4, 2021 4 trả lời

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');

![](https://secure.gravatar.com/avatar/04055413a55a4bbcfa1921d751216d998269164d061d76c06e1599c45d44d13b?
s=60&d=retro&r=g)

### 󠀁[Works great, thanks!](https://wordpress.org/support/topic/works-great-thanks-60/)󠁿

 [Deborah Edwards-Onoro](https://profiles.wordpress.org/redcrew/) 16 Tháng 4, 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.

![](https://secure.gravatar.com/avatar/aada970ec9667c0dfa34d473bd6067e447e6af4ffe3c789caf8d9f1a04380cfb?
s=60&d=retro&r=g)

### 󠀁[Thank you](https://wordpress.org/support/topic/thank-you-2788/)󠁿

 [Chris Wiegman](https://profiles.wordpress.org/chriswiegman/) 15 Tháng 4, 2021

While I hope to see this in WordPress core soon, this is a great alternative.

![](https://secure.gravatar.com/avatar/a7f734d8bac8171a9e5b2a64838b82644223e9ebcb560b36c7b7b6b100079728?
s=60&d=retro&r=g)

### 󠀁[FLoC off](https://wordpress.org/support/topic/floc-off/)󠁿

 [Martijn Geerdes](https://profiles.wordpress.org/gomgee/) 15 Tháng 4, 2021

urgently needed solution, easy install, no settings

 [ Đọc tất cả 7 đánh giá ](https://wordpress.org/support/plugin/disable-floc/reviews/)

## Người đóng góp & Lập trình viên

“Disable Topics API” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ WP Chill ](https://profiles.wordpress.org/wpchill/)

“Disable Topics API” đã được dịch qua 10 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/disable-floc/contributors)
vì đóng góp của họ.

[Dịch “Disable Topics API” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/disable-floc)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/disable-floc/), check out
[SVN repository](https://plugins.svn.wordpress.org/disable-floc/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/disable-floc/) qua [RSS](https://plugins.trac.wordpress.org/log/disable-floc/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 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.

## Meta

 *  Phiên bản **1.3**
 *  Cập nhật lần cuối **4 tháng trước**
 *  Số lượt cài đặt **300+**
 *  Phiên bản WordPress ** 4.9 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.4**
 *  Phiên bản PHP ** 5.6 hoặc cao hơn **
 *  Ngôn ngữ
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/disable-floc/), [Dutch](https://nl.wordpress.org/plugins/disable-floc/),
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/disable-floc/), [English (US)](https://wordpress.org/plugins/disable-floc/),
   [German](https://de.wordpress.org/plugins/disable-floc/), [Italian](https://it.wordpress.org/plugins/disable-floc/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/disable-floc/), [Romanian](https://ro.wordpress.org/plugins/disable-floc/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/disable-floc/), [Spanish (Spain)](https://es.wordpress.org/plugins/disable-floc/),
   và [Swedish](https://sv.wordpress.org/plugins/disable-floc/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/disable-floc)
 * Thẻ
 * [google](https://vi.wordpress.org/plugins/tags/google/)[privacy](https://vi.wordpress.org/plugins/tags/privacy/)
   [tracking](https://vi.wordpress.org/plugins/tags/tracking/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/disable-floc/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/disable-floc/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/disable-floc/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/disable-floc/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/disable-floc/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/disable-floc/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/disable-floc/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/disable-floc/reviews/)

## Những người đóng góp

 *   [ WP Chill ](https://profiles.wordpress.org/wpchill/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/disable-floc/)