How to Disable Google FLoC on your Child Sites

Heads up: This page may include affiliate links. Read the full disclosure.

Google is in the process of rolling out Learning of Cohorts (FLoC) in the Chrome browser. FLoC is intended as a replacement for cookies as interest-based marketing solution that can be used in the same way cookies are currently used. Google FLoC raises a number of privacy issues and due to GDPR rules in place in Europe currently, the FLoC trial is not being rolled out there.

WordPress may or may not end up having a filter or a setting in WordPress core that can be used to disable Google FLoC on your site.  But for the moment you can use the following code snippet on your connect child sites.

You can use the MainWP code snippets extension to run the code snippet on all of the connected child sites that you need to.

A plugin solution to disable FLoC on your site then you can install and activate the Disable FLoC plugin on your site. The plugin offers two blocking methods a simple PHP one as well as an Apache .htaccess based method. The Disable FLoC plugin should work with a number of caching plugins when using the simple method and you can use it with the WP Super Cache plugin.

If using the Apache method in the plugin settings it will add these entries into the sites .htacess file.

# Added by Disable FLoC by WP Munich
<IfModule mod_headers.c>
Header always set Permissions-Policy "interest-cohort=()"
</IfModule>

Depending on if WordPress core goes with a filter or a settings option to enable users to be able to disable Google FLoC on your site. Then the Disable FLoC plugin and the relevant code snippet will be updated in the post.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.