{"id":15024934,"url":"https://github.com/douganger/flask-ipfilter","last_synced_at":"2025-04-12T12:52:40.791Z","repository":{"id":57430403,"uuid":"174038645","full_name":"douganger/flask-ipfilter","owner":"douganger","description":"A simple Flask extension to limit access to a site to certain IP addresses.","archived":false,"fork":false,"pushed_at":"2023-02-15T21:20:16.000Z","size":100,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T07:36:34.293Z","etag":null,"topics":["flask","heroku","python3","security"],"latest_commit_sha":null,"homepage":"https://flask-ipfilter.readthedocs.io/","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/douganger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-05T23:53:32.000Z","updated_at":"2023-04-30T02:52:15.000Z","dependencies_parsed_at":"2023-02-17T14:45:45.659Z","dependency_job_id":null,"html_url":"https://github.com/douganger/flask-ipfilter","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"1c3d515f795701171bb9c138320abd21fadb5829"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douganger%2Fflask-ipfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douganger%2Fflask-ipfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douganger%2Fflask-ipfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douganger%2Fflask-ipfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douganger","download_url":"https://codeload.github.com/douganger/flask-ipfilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571627,"owners_count":21126520,"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":["flask","heroku","python3","security"],"created_at":"2024-09-24T20:01:14.366Z","updated_at":"2025-04-12T12:52:40.769Z","avatar_url":"https://github.com/douganger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-IPFilter\n\n[![Build Status](https://travis-ci.org/douganger/flask-ipfilter.svg?branch=master)](https://travis-ci.org/douganger/flask-ipfilter)\n[![Coverage Status](https://coveralls.io/repos/github/douganger/flask-ipfilter/badge.svg?branch=master)](https://coveralls.io/github/douganger/flask-ipfilter?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/flask-ipfilter/badge/?version=latest)](https://flask-ipfilter.readthedocs.io/en/latest/?badge=latest)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/545d4bfe0bee4a47a7235b4f2205bae1)](https://www.codacy.com/gh/douganger/flask-ipfilter/dashboard)\n\nFlask-IPFilter is a simple Flask extension to limit access to a site to certain\nIP addresses. The current implementation is a minimal proof of concept with one\nimportant limitation:\n\n-   The current implementation trusts the X-Forwarded-For header and uses the\n    last IP address in that header if multiple IP addresses are listed.\n\n## Quickstart\n\nInstall Flask-IPFilter with the command, `pip install flask-ipfilter`.\n\nThe following minimal Flask application demonstrates how to use Flask-IPFilter\nin your application.\n\n```python\nfrom flask import Flask\nfrom flask_ipfilter import IPFilter, Whitelist\n\napp = Flask(__name__)\nip_filter = IPFilter(app, ruleset=Whitelist())\n\nip_filter.ruleset.permit(\"127.0.0.1\")\n\n@app.route(\"/\")\ndef route_test():\n    return \"Allowed.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouganger%2Fflask-ipfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouganger%2Fflask-ipfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouganger%2Fflask-ipfilter/lists"}