Django middleware to disable Google FLoC tracking
Project description
django-floc-disable
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
- Issues: https://github.com/nhymxu/django-floc-disable/issues
- Here you can donate for this project.
License
The MIT License (MIT). Please see License File for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-floc-disable-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b289dc94bcd0905a2a71939b10dcc3d5429d3485ee56b5ae7478a05ed20e8ebc |
|
MD5 | f50d3acfeeaafd7f76df0c0d957d27ae |
|
BLAKE2b-256 | 7566c950e097516b49ede0b0b2b30555bd7e9c421fcfc06e9533a5c5174052c8 |
Close
Hashes for django_floc_disable-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e325073011774b380b956abe81e85d14c088d2d5102adeade69938bd5b7b9840 |
|
MD5 | f32758e345c65bd69cb42d1fb67b0cae |
|
BLAKE2b-256 | e281ffe10c0b8883357bf73c2177b8214792346a959d97dabd21e51713a108e5 |