# fastapi-guard

A security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts, honeypot setup, behavioural analysis, emergency mode lockdown, block Cloud Provider IPs, country blocking, and much more... It integrates seamlessly with FastAPI to offer robust protection against various security threats.

Canonical page: https://www.reposhelf.co.uk/projects/github/guard-core/fastapi-guard.html

- Project ID: Guard-Core/fastapi-guard
- Source: GitHub
- Original project: https://github.com/Guard-Core/fastapi-guard
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: MIT
- Repository availability checked: 2026-11-05T00:04:35.027Z
- Demo page loaded: 2026-11-12T13:26:31.651Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Website &amp;middot; Docs &amp;middot; Playground &amp;middot; Dashboard &amp;middot; Discord

> Production-ready security middleware for FastAPI.

> IP filtering, rate limiting, signature-based attack-pattern detection, and 20+ per-route security decorators.



## Author-documented requirements and audience

> Website &amp;middot; Docs &amp;middot; Playground &amp;middot; Dashboard &amp;middot; Discord





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/Guard-Core/fastapi-guard/blob/master/README.md

Extraction checked: 2026-10-20T19:38:11.755Z

Last recorded source update: 2026-11-01T02:00:45.000Z

Saved release: v8.0.2 — 2026-09-26T13:20:25.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=Guard-Core%2Ffastapi-guard). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
