Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix table concat bug #70

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions config.lua
Expand Up @@ -8,6 +8,7 @@ postMatch="on"
whiteModule="on"
black_fileExt={"php","jsp"}
ipWhitelist={"127.0.0.1"}
servernameWhitelist={"www.xx.com"}
ipBlocklist={"1.0.0.1"}
CCDeny="off"
CCrate="100/60"
Expand Down
12 changes: 12 additions & 0 deletions init.lua
Expand Up @@ -241,3 +241,15 @@ function blockip()
end
return false
end

function whiteSvrName()
if next(servernameWhitelist) ~= nil then
for _,svrname in pairs(servernameWhitelist) do
if ngx.var.server_name == svrname then
return true
end
end
end
return false
end

1 change: 1 addition & 0 deletions waf.lua
Expand Up @@ -3,6 +3,7 @@ local method=ngx.req.get_method()
local ngxmatch=ngx.re.match
if whiteip() then
elseif blockip() then
elseif whiteSvrName() then
elseif denycc() then
elseif ngx.var.http_Acunetix_Aspect then
ngx.exit(444)
Expand Down