Skip to content

Commit cac5b10

Browse files
committed
增加waf拦截的友好提示
1 parent 5440ec8 commit cac5b10

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

config.lua

+44-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,47 @@ ipWhitelist={"127.0.0.1"}
1111
ipBlocklist={"1.0.0.1"}
1212
CCDeny="off"
1313
CCrate="100/60"
14-
html=[[Please go away~~ ]]
14+
html=[[
15+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
16+
<meta http-equiv="Content-Type" content="text/html; charset=gbk2312">
17+
<title>网站防火墙</title>
18+
<style>
19+
p {
20+
line-height:20px;
21+
}
22+
ul{ list-style-type:none;}
23+
li{ list-style-type:none;}
24+
</style><style type="text/css"></style><style id="style-1-cropbar-clipper">
25+
.en-markup-crop-options {
26+
top: 18px !important;
27+
left: 50% !important;
28+
margin-left: -100px !important;
29+
width: 200px !important;
30+
border: 2px rgba(255,255,255,.38) solid !important;
31+
border-radius: 4px !important;
32+
}
33+
34+
.en-markup-crop-options div div:first-of-type {
35+
margin-left: 0px !important;
36+
}
37+
</style></head>
38+
39+
<body style=" padding:0; margin:0; font:14px/1.5 Microsoft Yahei, 宋体,sans-serif; color:#555;">
40+
41+
<div style="margin: 0 auto; width:1000px; padding-top:70px; overflow:hidden;">
42+
43+
44+
<div style="width:600px; float:left;">
45+
<div style=" height:40px; line-height:40px; color:#fff; font-size:16px; overflow:hidden; background:#6bb3f6; padding-left:20px;">网站防火墙 </div>
46+
<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;">
47+
<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>
48+
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">可能原因:您提交的内容包含危险的攻击请求</p>
49+
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:1; text-indent:0px;">如何解决:</p>
50+
<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>
51+
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2)如网站托管,请联系空间提供商;</li>
52+
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3)普通网站访客,请联系网站管理员;</li></ul>
53+
</div>
54+
</div>
55+
</div>
56+
</body></html>
57+
]]

0 commit comments

Comments
 (0)