floc-block
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

FLoC Block

FLoC Block is Express middleware to block Google's FLoC tracking. Help clean up the web.

Quick start

First, install the package with npm install floc-block. Then, in an Express app:

const flocBlock = require("floc-block");

// ...

app.use(flocBlock());

How it works

This middleware sets the Permissions-Policy response header to interest-cohort=(), and that's it. The middleware takes no arguments.

If the header was already set earlier in your stack, it will be overwritten.

For finer-grained control over the Permissions-Policy header, set the header yourself or use the permissions-policy npm package.

Readme

Keywords

Package Sidebar

Install

npm i floc-block

Weekly Downloads

79

Version

0.1.0

License

MIT

Unpacked Size

3.41 kB

Total Files

6

Last publish

Collaborators

  • evanhahn