mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
feat: 修改 waf 告警页面样式 (#80)
This commit is contained in:
parent
11409fceff
commit
839e62883d
@ -79,7 +79,7 @@ local function read_str(var)
|
||||
return str
|
||||
end
|
||||
|
||||
local html=read_str('html')
|
||||
local html=read_str('warn.html')
|
||||
|
||||
local function say_html()
|
||||
local redirect = optionIsOn(ngx.var.redirect)
|
||||
|
@ -1,30 +0,0 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>网站防火墙</title>
|
||||
<style>
|
||||
p {
|
||||
line-height:20px;
|
||||
}
|
||||
ul{ list-style-type:none;}
|
||||
li{ list-style-type:none;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style=" padding:0; margin:0; font:14px/1.5 Microsoft Yahei, 宋体,sans-serif; color:#555;">
|
||||
|
||||
<div style="margin: 0 auto; width:1000px; padding-top:70px; overflow:hidden;">
|
||||
|
||||
|
||||
<div style="width:600px; float:left;">
|
||||
<div style=" height:40px; line-height:40px; color:#fff; font-size:16px; overflow:hidden; background:#6bb3f6; padding-left:20px;">网站防火墙 </div>
|
||||
<div style="border:1px dashed #cdcece; border-top:none; font-size:14px; background:#fff; color:#555; line-height:24px; height:220px; padding:20px 20px 0 20px; overflow-y:auto;background:#f3f7f9;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; color:#fc4f03;">您的请求带有不合法参数,已被网站管理员设置拦截!</span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">可能原因:您提交的内容包含危险的攻击请求</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:1; text-indent:0px;">如何解决:</p>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1)检查提交内容;</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2)如网站托管,请联系空间提供商;</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3)普通网站访客,请联系网站管理员;</li></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body></html>
|
136
apps/openresty/versions/1.21.4.1/www/common/waf/rules/warn.html
Normal file
136
apps/openresty/versions/1.21.4.1/www/common/waf/rules/warn.html
Normal file
@ -0,0 +1,136 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>网站防火墙</title>
|
||||
<style>
|
||||
p {
|
||||
line-height: 20px;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
li {
|
||||
list-style-type: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="padding: 0; margin: 0; font: 14px/1.5 Microsoft Yahei, 宋体, sans-serif; color: #555">
|
||||
<div style="margin: 0 auto; width: 1000px; padding-top: 200px; overflow: hidden">
|
||||
<div style="width: 600px; margin: 0 auto;">
|
||||
<div
|
||||
style="
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
overflow: hidden;
|
||||
background: #6bb3f6;
|
||||
padding-left: 20px;
|
||||
"
|
||||
>
|
||||
网站防火墙
|
||||
</div>
|
||||
<div
|
||||
style="
|
||||
border: 1px dashed #cdcece;
|
||||
border-top: none;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
color: #555;
|
||||
line-height: 24px;
|
||||
height: 220px;
|
||||
padding: 20px 20px 0 20px;
|
||||
overflow-y: auto;
|
||||
background: #f3f7f9;
|
||||
"
|
||||
>
|
||||
<p
|
||||
style="
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 0;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
<span style="font-weight: 600; color: #fc4f03">
|
||||
您的请求带有不合法参数,已被网站管理员设置拦截!
|
||||
</span>
|
||||
</p>
|
||||
<p
|
||||
style="
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 0;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
可能原因:您提交的内容包含危险的攻击请求
|
||||
</p>
|
||||
<p
|
||||
style="
|
||||
margin-top: 12px;
|
||||
margin-bottom: 12px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 1;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
如何解决:
|
||||
</p>
|
||||
<ul
|
||||
style="
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-list-indent: 1;
|
||||
"
|
||||
>
|
||||
<li
|
||||
style="
|
||||
margin-top: 12px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 0;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
1)检查提交内容;
|
||||
</li>
|
||||
<li
|
||||
style="
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 0;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
2)如网站托管,请联系空间提供商;
|
||||
</li>
|
||||
<li
|
||||
style="
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
-qt-block-indent: 0;
|
||||
text-indent: 0px;
|
||||
"
|
||||
>
|
||||
3)普通网站访客,请联系网站管理员;
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user