添加禁止所有
parent
c1148409c4
commit
b3278cd5eb
2
init.lua
2
init.lua
|
@ -250,7 +250,7 @@ end
|
|||
function blockip()
|
||||
if next(ipBlocklist) ~= nil then
|
||||
for _,ip in pairs(ipBlocklist) do
|
||||
if getClientIp()==ip then
|
||||
if getClientIp()==ip or ip=="0.0.0.0" then
|
||||
ngx.exit(403)
|
||||
return true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
\.(svn|htaccess|bash_history)
|
||||
\.(svn|htaccess|bash_history|git)
|
||||
\.(bak|inc|old|mdb|sql|backup|java|class)$
|
||||
(vhost|bbs|host|wwwroot|www|site|root|hytop|flashfxp).*\.rar
|
||||
(phpmyadmin|jmx-console|jmxinvokerservlet)
|
||||
|
|
Loading…
Reference in New Issue