Control over rules directly with PHP?

Hello, is there any possibility to control “Firewall rules” with PHP?

For example => add or delete something from that rule with PHP for example cf-edit.php?;

(http.request.uri.path contains "/blog" and ip.src in {} and not ip.src in {})

It surely is possible using the API to add/delete/change rules. That’s how Cloudflare WordPress plugins operate.

1 Like

Unfortunately i don’t see a script without wordpress anywhere because I don’t use wordpress. :frowning:

You should be able to find PHP sample scripts as well as discussions on and similar programming websites.