Skip to content

πŸ›‘οΈπŸŒ A Cloudflare web interface to create / edit and bulk import / export your firewall rules using Cloudflare's API.

License

Notifications You must be signed in to change notification settings

QuentiumYT/Cloudflare-Firewall-Rules-Web

Repository files navigation

Welcome to Cloudflare WAF Custom rules web interface πŸ‘‹

Previously known as Cloudflare Firewall Rules Web

DonateΒ  ContributionsΒ  Tested on Python 3.12Β  LicenseΒ  SizeΒ 

A Cloudflare web interface to bulk add / edit your WAF custom rules using Cloudflare's API wrapper.

This website interface aims to easily create, modify, delete rules. It also provides a way to import & export new rules in your domain's WAF.

If you have some rules that you want to duplicate among your domains, this website is made for you!

This project uses the Cloudflare-Firewall-Rules Python module

Website preview

πŸ“₯ Installation

git clone https://github.com/QuentiumYT/Cloudflare-Firewall-Rules-Web.git
cd Cloudflare-Firewall-Rules-Web/
# Install Python requirements
pip install -r requirements.txt
# Install dev dependencies (css related)
npm install
# Install web dependencies
cd static/ && npm install

πŸš€ Usage

# Build CSS
npm run build
# Run Flask app
python app.py

You can now navigate to 127.0.0.1:5502

🐳 Docker usage

Edit the docker-compose file if needed

# Build the container
docker-compose up -d --build

You can now navigate to 172.200.0.2

You can also add 172.200.0.2 cfr.loc to your /etc/hosts (cfr.loc)


Create and edit rules using the online editor

More usage doc to come

🀝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change and join your fork with the modifications.

If you don't feel comfortable coding, you can submit your idea about what you would like to see implemented.

πŸ‘€ Author

Quentin L.

Please ✰ this repository if this project helped you!

πŸ“– License

Apache 2.0


Made with ❀ by QuentiumYT