Skip to content

Add fastapi-guard to Web Framework Hardening - #38

Open
rennf93 wants to merge 1 commit into
guardrailsio:masterfrom
rennf93:add-fastapi-guard
Open

rennf93 wants to merge 1 commit into
guardrailsio:masterfrom
rennf93:add-fastapi-guard

Conversation

@rennf93

@rennf93 rennf93 commented Oct 16, 2026 •

Copy link
Copy Markdown

This adds fastapi-guard to Web Framework Hardening. I'm the author.

It hardens FastAPI and Starlette applications at the request layer: IP and country allow and deny lists, user-agent filtering, rate limiting with automatic IP bans, SQL injection and XSS pattern detection, cloud-provider blocking and security headers. It is MIT licensed and maintained; the docs are at https://guard-core.github.io/fastapi-guard/.

I'm opening one pull request per package, as the contributing guide asks. The same project also has adapters for the other Python frameworks in this section.

Project background: Guard Core's first library is fastapi-guard, public since August 2024 (first PyPI release, 0.1.0, on 2024-08-26). It has 825 GitHub stars, 65 releases and about 62,000 PyPI downloads in the last month (pypistats.org). The framework-agnostic engines and the adapters for other frameworks and languages came later and run the same detection rules, checked in CI against shared conformance fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant