宝塔防火墙拦截页面代码模板2
防火墙代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>云防御</title>
<style>
*{
margin: 0;
padding: 0;
font-family: Microsoft YaHei;
box-sizing: border-box;
}
html,body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body{
background-size: 100% 100%;
background-repeat: no-repeat;
background-attachment: fixed;
background-image: url();
}
.main{
width: 99%;
padding-top: 10%;
}
.main .content{
margin: 0 auto;
padding-top: 5%;
text-align:center;
}
.main p{
color: #666666;
font-size: 18px;
margin-bottom: 6px;
}
.button{
font-size: 0;
margin:20px auto 0;
}
.button a{
display: inline-block;
line-height: 50px;
height: 50px;
width: 220px;
text-align: center;
background: #008DFF;
color: #ffffff;
text-decoration: none;
font-size: 18px;
margin-left: 10px;
border-radius:5px;
}
.button a:visited{
color: #ffffff;
}
.button a:hover{
background: #07A1FF;
}
.footer{
width: 100%;
color:#666666;
font-size:14px;
position: absolute;
bottom: 30px;
}
.footer .content{
padding-left: 15%;
}
.footer p{
margin-bottom: 5px;
word-wrap: break-word;
word-break: break-all;
}
.event{text-align:center;width:100%;margin:0 auto 20px;color:#18b9d6;}
.event p{text-align:center;color:#18b9d6;}
.statusCode {width: 316px;height:117px;margin-left: auto;margin-right: auto;background: url();}
</style>
</head>
<body>
<div class="main">
<div class="statusCode"></div>
<div class="content">
<div class="event">
</div>
<p>检测到敏感词,已被云防护拦截!</p>
<div class="button">
<a href="javascript:goHome()">返 回</a>
</div>
</div>
</div>
<div class="footer">
<div class="content">
<div>
</div>
</div>
</div>
<script type="text/javascript">
function goHome(){
window.location="/";
}
function HTMLEncode(html)
{
var temp = document.createElement ("div");
(temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html);
var output = temp.innerHTML;
temp = null;
return output;
}
document.getElementById("wurl1").appendChild(document.createTextNode(HTMLEncode(location.href)));
</script>
</body>
</html>
代码:https://www.httple.net/76023.html