UnFloC your site
FLoC requires that a website provide an explicit HTTP response header if it wants to opt out of the program. Google is counting on webmasters to not be bothered with this task. Google is counting on webmasters to not be bothered with this task. Be bothered:
website or blog
In order to opt out a website out of the FLoC network, add a custom HTTP response header to all websites to be served with each request. This comes in the form of a Permissions-Policy header, with the following syntax:
Permissions-Policy: interest-cohort=()
Wordpress
For WordPress there is an open-source plugin, Disable FLoC, that will add the necessary Permissions-Policy headers to the WP. An alternative is the paid Really Simple SSL pro plugin that will allow setting more Permission-Policy headers.
nginx webserver
If you have access to your webserver, for nginx use the add_header directive (and then restart nginx):
server {
location / {
add_header Permissions-Policy interest-cohort=();
...
}
}
OpenLiteSpeed webserver
If you have access to your webserver, for the OpenLiteSpeed web server, add the FLoC header by editing vhost.conf
located in /usr/local/lsws/conf/vhosts/[some_application]/vhconf.conf
, for example
context / {
location $DOC_ROOT
allowBrowse 1
note This header disables FLoC
extraHeaders set Permissions-Policy interest-cohort=()
}
and do a graceful restart of OpenLiteSpeed.
Apache
For Apache web server, add the custom header in the configuration file:
<IfModule mod_headers.c>
Header always set Permissions-Policy: interest-cohort=()
</IfModule>