Compare commits

...

2 commits

Author SHA1 Message Date
Sebastien Blot
79eb96fbee
add FILES 2024-04-26 15:13:24 +02:00
Sebastien Blot
e5043c8d98
add cookies related zones 2024-04-22 18:02:21 +02:00

View file

@ -11,18 +11,23 @@ type ModsecurityRule struct {
} }
var zonesMap map[string]string = map[string]string{ var zonesMap map[string]string = map[string]string{
"ARGS": "ARGS_GET", "ARGS": "ARGS_GET",
"ARGS_NAMES": "ARGS_GET_NAMES", "ARGS_NAMES": "ARGS_GET_NAMES",
"BODY_ARGS": "ARGS_POST", "BODY_ARGS": "ARGS_POST",
"BODY_ARGS_NAMES": "ARGS_POST_NAMES", "BODY_ARGS_NAMES": "ARGS_POST_NAMES",
"HEADERS_NAMES": "REQUEST_HEADERS_NAMES", "COOKIES": "REQUEST_COOKIES",
"HEADERS": "REQUEST_HEADERS", "COOKIES_NAMES": "REQUEST_COOKIES_NAMES",
"METHOD": "REQUEST_METHOD", "FILES": "FILES",
"PROTOCOL": "REQUEST_PROTOCOL", "FILES_NAMES": "FILES_NAMES",
"URI": "REQUEST_FILENAME", "FILES_TOTAL_SIZE": "FILES_COMBINED_SIZE",
"URI_FULL": "REQUEST_URI", "HEADERS_NAMES": "REQUEST_HEADERS_NAMES",
"RAW_BODY": "REQUEST_BODY", "HEADERS": "REQUEST_HEADERS",
"FILENAMES": "FILES", "METHOD": "REQUEST_METHOD",
"PROTOCOL": "REQUEST_PROTOCOL",
"URI": "REQUEST_FILENAME",
"URI_FULL": "REQUEST_URI",
"RAW_BODY": "REQUEST_BODY",
"FILENAMES": "FILES",
} }
var transformMap map[string]string = map[string]string{ var transformMap map[string]string = map[string]string{