Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
edetmt
/
nginx-lua
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 16dcd08b
authored
Apr 26, 2020
by
edetmt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete post.rule ->123456
1 parent
38fe0955
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
config.lua
rule-config/post.rule
config.lua
View file @
16dcd08
...
...
@@ -28,7 +28,7 @@ config_cookie_check = "on"
--enable/disable cc filtering #启用cc防御
config_cc_check
=
"on"
--cc rate the xxx of xxx secondsa #允许单个ip60秒内只能访问10次
config_cc_rate
=
"10
/6
0"
config_cc_rate
=
"10
0/1
0"
--enable/disable post filtering #是否开启post检测
config_post_check
=
"on"
--config waf output redirect/html # 选择跳转url或者html
...
...
@@ -40,11 +40,11 @@ config_output_html=[[
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title>block info</title>
<title>
waf
block info</title>
</head>
<body>
<
h1 align="center"> 403 forbidden </h1
>
<
p align="center"> Your behavior is considered unsafe by the system and has been blocked</p
>
</body>
</html>
...
...
rule-config/post.rule
View file @
16dcd08
password=123456$
\.\./
select.+(from|limit)
(?:(union(.*?)select))
sleep\((\s*)(\d*)(\s*)\)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment