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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ed8fb6784d6f05034cc159b523f2d2db27ed137cff0d44b02422b5d5b469e3 |
|
MD5 | fe686d8d46f80d69e47210cffc7be3c9 |
|
BLAKE2b-256 | ffd36b88bf19162cc3c64d3c045e0eec7ac387c4669b4642324c41e7af5cfddd |
Close
Hashes for django_floc_disable-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de42234e942e5741f5839b8299827fadb109f46a785eba4289a7253bbaba251a |
|
MD5 | a9bbc6b7b592458a666013a94f46cbe2 |
|
BLAKE2b-256 | a6973eb27b8650ea02bd95337a4e088eda0b163d608ec2b66ebe8021a1ed4f79 |