CF-Changes Rules - Inspect multipart part headers, preambles, and empty parts

Cloudflare Reporting - Product Changelog

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
4,468
Five new Rules fields provide more detail about multipart request bodies:

FieldContents
http.request.body.multipart.headersStandard and custom headers grouped by lowercase name for each part.
http.request.body.multipart.headers.namesHeader names in original case and occurrence order for each part.
http.request.body.multipart.headers.valuesHeader values aligned with the names for each part.
http.request.body.multipart.preambleOriginal bytes before the first boundary delimiter.
http.request.body.multipart.empty_parts_countHeaderless, empty-body parts skipped during parsing.

For example, match a custom header on the first parsed part:


http.request.body.multipart.headers[0]["x-upload-tag"][0] eq "review"

Header arrays preserve part association and duplicate headers. The preamble includes the line ending before the first delimiter. The empty-part count includes only parts encountered before parsing stops.

These fields require an Enterprise plan. Request body inspection and multipart parsing limits apply.

For details, refer to the multipart headers, preamble, and empty-part count field references.

Continue reading...
 
Back
Top