How to let certain requests through if they have X-foo header set?

I have a high security mode enabled on my website, however, on this subdomain i'm also hosting a service - seq, which is an analytics / logging app. i want the client to be able to send data to this endpoint without getting interrupted of flagged by cloudflare ddos protection. if the request.http.header has X-Seq-ApiKey set to any value (or a custom one if possible?)
19 Replies
sekiguchi://tenxdeveloper
also the media type is application/vnd.serilog.clef wdym cors? its not made from the browsers, its made from a backend service, .NET app running and using serilog to log the stuff to seq how do i configure this rule to read the header value and then allow the request through though? cloudflares high security and anti bot protections i have default bot protections, and yes i have UAM on i want to have it on* but i want this request, which has only one header, which is the X-Seq-ApiKey set, well UAM blocks the request ig?, without it logging works
sekiguchi://tenxdeveloper
expression: (http.request.full_uri wildcard "https://seq.mydomain.dev/api/events/raw" and http.request.method eq "POST")
sekiguchi://tenxdeveloper
ahh thanks that might just be what i needed
sekiguchi://tenxdeveloper
how should i use the custom rules? i mean its just info right? nvm mb
sekiguchi://tenxdeveloper
its still not responding for some reason, maybe the rule isnt good?
No description
sekiguchi://tenxdeveloper
(len(http.request.headers["x-seq-apikey"]) > 0 and http.request.uri.path eq "/api/events/raw" and http.request.method eq "POST")
(len(http.request.headers["x-seq-apikey"]) > 0 and http.request.uri.path eq "/api/events/raw" and http.request.method eq "POST")
sekiguchi://tenxdeveloper
trace does not seem to be hitting the rule...
sekiguchi://tenxdeveloper
you weer right
sekiguchi://tenxdeveloper
but why does the actual app not work then?

Did you find this page helpful?