CF-Shield – An open source tool to protect any website with Cloudflare
10 months ago
- #Python
- #Cloudflare
- #DDoS Protection
- CF-Shield is a Python script for detecting DDoS attacks and enabling security measures on Cloudflare automatically.
- Installation can be done via pip or git, requiring Cloudflare email, API token, zone ID, and account ID for setup.
- The script prompts for configuration details including domain(s), challenge type (managed_challenge, js_challenge, challenge), CPU usage threshold, and notification settings (Discord, Telegram, Slack).
- Features include customizable alert messages, averaged CPU monitoring, and automatic delay before disabling challenge rules.
- Future updates may include support for multiple domains, automated CPU spike detection, and additional notification methods like ntfy.sh.
- Contributions are welcome, with a request to discuss major changes via issues before submitting pull requests.