Is it possible to register a callback API from CloudFlare' event?

Hello all,

I would like to know if the following example is doable:

assuming the site has a firewall rule, whenever the rule hit a “Block” event a callback is fired to my API endpoint address.

Thank you all in advance!

There is no callback for firewall/page rules. Only way to do this is using Workers. All you need is to write small code which will act like your firewall and you can do whatever you want with it :slight_smile: callback, trigger, block, challenge…

I can write and share small worker if you are willing to use this approach.

Hi nikoloz, many thanks for your reply!

I’m not familiar with Workers, and I’ll do my research, in what language dose one use to code Worker?

Workers are codes in Javascript, some examples are available at

awesome! many thanks!

thank you all for you suggestions and help, I’ve moved a bit forward with my task using a Worker but encountered a problem, I’ve created a new post about it here, once again, thank you all for your support!

1 Like