Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tractorcow/silverstripe-floc-block
https://github.com/tractorcow/silverstripe-floc-block
floc silverstripe
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tractorcow/silverstripe-floc-block
- Owner: tractorcow
- Created: 2021-04-19T23:01:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T00:46:04.000Z (almost 4 years ago)
- Last Synced: 2024-10-15T16:10:55.158Z (3 months ago)
- Topics: floc, silverstripe
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# FLOC Blocker
## 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.
```ini
SS_FLOC_BLOCK="true"
```This will turn the block off, letting FLOC work as normal (the bad thing, what google wants)
```ini
SS_FLOC_BLOCK="false"
```### yml
You can also set the `Enabled` property via yml.
```yaml
---
Name: my-config
After:
- '#floc-block'
---
SilverStripe\Core\Injector\Injector:
TractorCow\SilverStripeFLOCBlock\FLOCBlockMiddleware:
properties:
Enabled: true
```