Set Cloudflare WAF rules with Fail2Ban actions

Cloudflare offers API access to it’s WAF IP access rules, which can be a great tool to ban bots on a “edge” level, reducing load on each instance. So once a server bans an IP for repeatedly failing auth, it will be blocked on the CF level, unable to bother other servers. My old script…

Python Project Scaffold

create a project scaffold or project template to get started faster with python projects We will create a virtual environment inside our project to avoid any incompatibility issues Example code Example test code We need then a Makefile to automate builds and tests Then we will create the requirements file The .github/workflows/pythonapp.yml file that stores…