Allow opting out of Google's FLoC

Google's new tracking technology called FLoC is a privacy nightmare. Luckily there is a way to opt out by setting a response header.


What is FLoC (per Google):

Federated Learning of Cohorts (FLoC) proposes a new way for businesses to reach people with relevant content and ads by clustering large groups of people with similar interests. This approach effectively hides individuals “in the crowd” and uses on-device processing to keep a person’s web history private on the browser.


How can a website opt out?

A website can opt out by setting the Permission Policy HTTP response header. This can be done e.g. in the .htaccess file like so:

<IfModule mod_headers.c>
Header always set Permissions-Policy: interest-cohort=()
</IfModule>


We need a way to opt out for Webflow sites

Since Webflow doesn't give access to the .htaccess or comparable config files (understandably), it would be great to have a site setting where we can turn off or on FLoC. Of course, the default should be off.

Here's a good article if you want more infos on FLoC.

  • Can Olcer
  • Apr 15 2021
  • Reviewed