添加禁止所有

pull/63/merge^2
ibuler 2015-09-14 19:36:25 +08:00
parent c1148409c4
commit b3278cd5eb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)