tractorcow/silverstripe-floc-block

Blocks Google's FLOC

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

dev-master 2021-04-20 00:45 UTC

This package is auto-updated.

Last update: 2024-05-20 07:46:02 UTC


README

What it does

basically this just adds a new HTTP header that prevents FLOC from affecting your site's visitors

permissions-policy: interest-cohort=()

Install

Install with composer require tractorcow/silverstripe-floc-block

Config

env

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"

yml

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