Skip to main content

Django middleware to disable Google FLoC tracking

Project description

django-floc-disable

unit test

Django middleware to disable Google's Federated Learning of Cohorts (FLoC) tracking

Python / Django Support

  • Python 3.6+
  • Django versions 3+

Usage

Install django-floc-disable:

pip install django-floc-disable

Add it to your INSTALLED_APPS:

MIDDLEWARE = (
    # ...
    'django_floc_disable.middleware.FLoCDisableMiddleware',
    # ...
)

This will set the Permissions-Policy header to a value of interest-cohort=() for every request served by Django.

Support

License

The MIT License (MIT). Please see License File for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-floc-disable-1.1.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

django_floc_disable-1.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page