Welcome! Log In Create A New Profile

Advanced

request_body capture regex

Musta Fa
April 20, 2017 10:30AM
is it possible to capture POST data, but as soon there is a "password" then
this word and its value to mask or exclude from log.

i was trying to split request_body, but it not working correct:

map $request_body $request_body_nopwd {
"~(.*)(&|%5B)password(%5D)?\=" $1;
}

also if request dont have password it returns empty value, etc
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

request_body capture regex

Musta Fa April 20, 2017 10:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready