Help with Cloudflare Workers Bot Rate Limiting Code

Our platform relies heavily on form submissions to collect data for campaigns our clients run.

While we can enable Cloudflare’s rate limiting feature to block abuse of submissions to our forms as a whole, it does not let us get more granular in order to block submissions to specific form ID’s (which is what we want). We have specific campaigns that get heavily abused by users who are switching IP’s continuously, so we want to be able to just rate limit these campaigns instead of applying the same rate limits to all campaigns in our system.

Is anyone able to create an example for us where we can use Cloudflare workers + rate limiting in order to detect if the post var “id” exists on request URI “/promo/enter" and that “id” = “XXXXXXXX” so we can change and add to it as needed?