{"repo":"rennf93/fastapi-guard","free":true,"listed":false,"github":"https://github.com/rennf93/fastapi-guard","clone":"git clone https://github.com/rennf93/fastapi-guard.git","description":"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.","language":"Python","stars":812,"topics":["api","security","fastapi","ip","middleware","python","rest"],"license":"MIT","category":"security-tools","readme_excerpt":"Website &middot; Docs &middot; Playground &middot; Dashboard &middot; Discord Production-ready security middleware for FastAPI. IP filtering, rate limiting, signature-based attack-pattern detection, and 20+ per-route security decorators. --- 📋 Using this in production? Tell me what is working and what is not → Six minutes. It decides what gets built next. Anonymous unless you choose otherwise. 📊 State of FastAPI Security 2026 Take the survey → Five minutes, nothing to sign up for. Results published publicly, free for everyone. --- Quick Start --- Example For production, wire guard.lifespan.guard lifespan into FastAPI(lifespan=...) so initialization runs at app startup instead of on the first request — see Eager initialization. --- Per-Route Security Decorators Apply security rules at the endpoint level with composable decorators: Available decorator categories: - Access --- require ip , block countries , allow countries , block clouds , bypass - Auth --- require https , require auth , api key auth , require headers - Rate Limiting --- rate limit , geo rate limit - Content --- block user agents , content type filter , max request size , require referrer , custom validation , detection exclusion - Behavioral --- usage monitor , return monitor , suspicious frequency , behavior analysis - Advanced --- time window , honeypot detection , suspicious detection Full decorator reference --- Cloud Dashboard FastAPI Guard has a centralized cloud platform for real-time monitoring and th","default_branch":null,"files":null,"tree":[],"storefront":"/r/rennf93","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rennf93/fastapi-guard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}