[GH-ISSUE #114] modsecurity不能使用waf_block_page配置的拦截返回页面 #222

Open
opened 2026-03-13 17:06:29 +03:00 by kerem · 1 comment
Owner

Originally created by @gongwenbin on GitHub (Oct 31, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/114

ngx_waf版本:current
nginx -V:--with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-stream --with-pcre --add-dynamic-module=/usr/local/src/ngx_waf --with-compat --with-cc-opt=-std=gnu99

modsecurity不能使用waf_block_page配置的拦截返回页面,默认使用nginx的403页面。

请问这个是否有方法可以使用自定义页面?

waf_action blacklist=403 cc_deny=403 modsecurity=403 verify_bot=403;
将modsecurity配置为403,而不使用fllow时,可以使用自定义返回页面, 但不知道这个有什么后果

Originally created by @gongwenbin on GitHub (Oct 31, 2022). Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/114 ngx_waf版本:current nginx -V:--with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-stream --with-pcre --add-dynamic-module=/usr/local/src/ngx_waf --with-compat --with-cc-opt=-std=gnu99 modsecurity不能使用waf_block_page配置的拦截返回页面,默认使用nginx的403页面。 请问这个是否有方法可以使用自定义页面? waf_action blacklist=403 cc_deny=403 modsecurity=403 verify_bot=403; 将modsecurity配置为403,而不使用fllow时,可以使用自定义返回页面, 但不知道这个有什么后果
Author
Owner

@stale[bot] commented on GitHub (Nov 7, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。

<!-- gh-comment-id:1306131086 --> @stale[bot] commented on GitHub (Nov 7, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. 此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ngx_waf#222
No description provided.