Skip to content
r.

fastapi-guard

Guard-Core/fastapi-guard · Public GitHub repository

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.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

fastapi-guard live demo screenshot
Captured from the live demo · 2026-11-12

About this project

Author-written excerpt from the project README.

Website · Docs · Playground · Dashboard · Discord

Production-ready security middleware for FastAPI.

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

Requirements and intended audience

Website · Docs · Playground · Dashboard · Discord

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-20. Source: https://github.com/Guard-Core/fastapi-guard/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-01. Saved release: v8.0.2 · 2026-09-26. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-12. This does not test every feature.

Browse related categories