{"id":14972863,"url":"https://github.com/nhymxu/django-floc-disable","last_synced_at":"2025-04-13T12:35:13.481Z","repository":{"id":51358737,"uuid":"366585612","full_name":"nhymxu/django-floc-disable","owner":"nhymxu","description":"Django middleware to disable Google's Federated Learning of Cohorts (FLoC) tracking","archived":false,"fork":false,"pushed_at":"2024-12-25T14:51:59.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T03:41:34.006Z","etag":null,"topics":["django","django-application","floc","middleware"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-floc-disable/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhymxu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"nhymxu","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/nhymxu","https://nhantien.momo.vn/WTOl9cURX5P"]}},"created_at":"2021-05-12T03:52:19.000Z","updated_at":"2024-12-25T14:52:02.000Z","dependencies_parsed_at":"2022-08-28T05:12:21.171Z","dependency_job_id":null,"html_url":"https://github.com/nhymxu/django-floc-disable","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"nhymxu/.github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhymxu%2Fdjango-floc-disable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhymxu%2Fdjango-floc-disable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhymxu%2Fdjango-floc-disable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhymxu%2Fdjango-floc-disable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhymxu","download_url":"https://codeload.github.com/nhymxu/django-floc-disable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103913,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-application","floc","middleware"],"created_at":"2024-09-24T13:47:39.495Z","updated_at":"2025-04-13T12:35:13.454Z","avatar_url":"https://github.com/nhymxu.png","language":"Python","funding_links":["https://ko-fi.com/nhymxu","https://www.paypal.me/nhymxu","https://nhantien.momo.vn/WTOl9cURX5P"],"categories":[],"sub_categories":[],"readme":"# django-floc-disable\n\n[![unit test](https://github.com/nhymxu/django-floc-disable/actions/workflows/test-python.yml/badge.svg?branch=main)](https://github.com/nhymxu/django-floc-disable/actions/workflows/test-python.yml)\n\nDjango middleware to disable Google's Federated Learning of Cohorts (`FLoC`) tracking\n\nNew version is Topics API\n\n## Python / Django Support\n\n- Python 3.8+\n- Django versions 3+\n\n## Usage\n\nInstall django-floc-disable:\n\n```shell\npip install django-floc-disable\n```\n\nAdd it to your `MIDDLEWARE` tuple in `settings.py`:\n\n```python\nMIDDLEWARE = (\n    # ...\n    'django_floc_disable.middleware.FLoCDisableMiddleware',\n    # ...\n)\n```\n\nThis will set the `Permissions-Policy` header to a value of `browsing-topics=()` for every request served by Django.\n\nReference:\n- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/browsing-topics\n- https://developers.google.com/privacy-sandbox/private-advertising/topics/web/controls#opt_out_as_a_developer\n\n## Support\n\n* Issues: \u003chttps://github.com/nhymxu/django-floc-disable/issues\u003e\n* Here you can [donate](https://dungnt.net/donate.html) for this project.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.txt) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhymxu%2Fdjango-floc-disable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhymxu%2Fdjango-floc-disable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhymxu%2Fdjango-floc-disable/lists"}