basically this just adds a new HTTP header that prevents FLOC from affecting your site's visitors
permissions-policy: interest-cohort=()
Install with composer require tractorcow/silverstripe-floc-block
The module is enabled by default, but you can set this in your .env
file to specify
This will turn the block on, disabling FLOC (the good thing, what we want).
This is the default option, so you don't normally need to set this.
SS_FLOC_BLOCK="true"
This will turn the block off, letting FLOC work as normal (the bad thing, what google wants)
SS_FLOC_BLOCK="false"
You can also set the Enabled
property via yml.
---
Name: my-config
After:
- '#floc-block'
---
SilverStripe\Core\Injector\Injector:
TractorCow\SilverStripeFLOCBlock\FLOCBlockMiddleware:
properties:
Enabled: true