Cloud Provider IP Blocking¶
FastAPI Guard can automatically detect and block requests from major cloud providers. The IP ranges for these providers are only loaded when cloud blocking is enabled, improving startup performance.
Supported Providers¶
Currently supported cloud providers: - Amazon Web Services (AWS) - Google Cloud Platform (GCP) - Microsoft Azure
Basic Configuration¶
Enable cloud provider IP blocking:
Selective Blocking¶
Block specific providers:
IP Range Updates¶
Cloud IP ranges are automatically updated daily. You can manually refresh them:
Custom IP Checking¶
Check if an IP belongs to a cloud provider: