Skip to main content

Allows to mass modify rules in CloudFlare WAF

Project description

cfwafenabler

CloudFlare doesn't allow to set their entire WAF in Simulate mode. Instead, they suggest you to use the API. cfwafenabler allows you to mass-modify all the rules to put your WAF in Simulate mode

Installation

To install cfwafenabler just use pipx

pipx install cfwafenabler

Usage

Before executing cfwafenabler, you need to set some CloudFlare environment variables. If you use API key ( global permissions ) you need to set:

export CF_API_EMAIL=your@email.com
export CF_API_KEY=YouApiKey

If you are using CloudFlare API tokens, you only need to set (it's the same env variable, they reuse it):

export CF_API_KEY=YouApiToken

This token needs the following permissions:

Zone.Zone:Read, Zone.Firewall Services:Edit

Credits

Based in canozokur's work.

This package was created with Cookiecutter and the byt3bl33d3r/pythoncookie project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfwafenabler-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

cfwafenabler-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file cfwafenabler-0.0.2.tar.gz.

File metadata

  • Download URL: cfwafenabler-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.1.0

File hashes

Hashes for cfwafenabler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1cf65a182fc51f71434111a3d9a1cb1e714d7368600d82a6d2c8e40f2f6c59a9
MD5 69a3f474f681c56cad1c0ea96e17f26c
BLAKE2b-256 b97068c9425170d5b3e200049a3732efa7ecde29eb76430f0abeead17dc389ce

See more details on using hashes here.

File details

Details for the file cfwafenabler-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cfwafenabler-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.1.0

File hashes

Hashes for cfwafenabler-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55f5445df96001cc566a07e7772505a327ed672a51add3caf2126d977a8440ac
MD5 ca7ecdb106a507de236bb1dc9e79b4f3
BLAKE2b-256 389ad054407b13a9d6643248de0beb4b3ed66f78b4c0065eaecc4c5b1ce3a98e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page