Closed Chathu07 closed 11 months ago
Hi all,
I want to whitelist following ban. Then I have created following whitelist rule for core rule id 1000. But nginx reload failed.
BasicRule wl:1000 "mz:$URL_VAR:content";;
This is the error log.
2019/04/18 22:35:08 [error] 44389#44389: *1006 NAXSI_EXLOG: ip=157.55.39.89&server=www.domain.com&uri=%2F2012%2F09%2Fofficial-update-roll.html&id=1000&zone=URL&var_name=&content=%2F2012%2F09%2Fofficial-update-roll.html, client: 157.55.39.89, server: domain.com, request: "GET /2012/09/official-update-roll.html HTTP/1.1", host: "www.domain.com"
When I test the nginx with about whitelist rule it gives following error.
nginx: [emerg] Naxsi-Config : Incorrect line BasicRule wl:1000 (../naxsi-master/naxsi_src//naxsi_skeleton.c/474)... in /etc/nginx/naxsi/naxsi-whitelist.rules:3 nginx: configuration file /etc/nginx/nginx.conf test failed
Hi,
$URL_VAR doesn't exist, you should use $URL or URL_X for regex. For your case, the whitelist is :
$URL_VAR
$URL
URL_X
BasicRule wl:1000 "mz:$URL:/2012/09/official-update-roll.html";
Hi all,
I want to whitelist following ban. Then I have created following whitelist rule for core rule id 1000. But nginx reload failed.
This is the error log.
2019/04/18 22:35:08 [error] 44389#44389: *1006 NAXSI_EXLOG: ip=157.55.39.89&server=www.domain.com&uri=%2F2012%2F09%2Fofficial-update-roll.html&id=1000&zone=URL&var_name=&content=%2F2012%2F09%2Fofficial-update-roll.html, client: 157.55.39.89, server: domain.com, request: "GET /2012/09/official-update-roll.html HTTP/1.1", host: "www.domain.com"
When I test the nginx with about whitelist rule it gives following error.
nginx: [emerg] Naxsi-Config : Incorrect line BasicRule wl:1000 (../naxsi-master/naxsi_src//naxsi_skeleton.c/474)... in /etc/nginx/naxsi/naxsi-whitelist.rules:3 nginx: configuration file /etc/nginx/nginx.conf test failed