{"repo":"Machou/Cloudflare-Block","free":true,"listed":false,"github":"https://github.com/Machou/Cloudflare-Block","clone":"git clone https://github.com/Machou/Cloudflare-Block.git","description":"Bash script that automatically activates Cloudflare's \"I'm Under Attack!\" mode if the server detects an attack.","language":"Shell","stars":91,"topics":["api","cloudflare","server","shell","spam"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Description This script automatically enables Cloudflare I'm Under Attack Mode when the server load average becomes too high, and disables it once the load returns to normal. It is designed to help mitigate traffic spikes, abusive requests, or potential DDoS situations by temporarily increasing Cloudflare protection automatically. I think this scenario is completely useless in 2026, but I find it funny to give it a second life. Configuration Download the Repository Clone the repository: Enter the project directory: Make the script executable: --- Configure Your API Create a Cloudflare API Token from your Cloudflare dashboard: 1. My Profile 2. API Tokens 3. Create Token Recommended permissions: You will also need your: Zone ID API Token --- Create / Edit .env Create the environment file: Example configuration: Secure the file: --- Cron Edit the crontab: Run the script every minute: --- Logs View logs with: --- License Cloudflare-Block are distributed under the The MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Machou","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Machou/Cloudflare-Block/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."}