Matomo Analytics

Google recently announced they will enroll a new program called FLoC (Federated learning of cohorts). Many users have expressed negative feelings about the forced way this is being enrolled to the Google Chrome browser.

In short, the FLoC network allows google to track your internet activity and sell this. This is not being done through cookies, but it is directly integrated into the Chrome browser.

Luckily, disabling for this network isn't that hard. You can disable the cohort network by adding headers like this:

Permissions-Policy: interest-cohort=()

In this guide we'll cover a few webservers to easily disable this.

NGINX

Make sure to add the header directive to each site you want to disable it for.

server {
    location / {
      add_header Permissions-Policy interest-cohort=();
      ...
    }
}

Apache

In Apache you can use .htaccess to disable it:

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

HaProxy

Inside your haproxy.cfg add this to disable:

http-response set-header Permissions-Policy interest-cohort=()

06 June 2021 (last updated 3 years ago)

3401 views

Written by Dennis

Dennis brings over 6 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Back to Domains


Start free trial