本文最后更新于 1202 天前,其中的信息可能已经有所发展或是发生改变。
<img class="size-medium,lazyload" src="https://i.loli.net/2019/06/22/5d0dc30e6802914998.png" alt="效果图" width="1920" height="1048" /> 效果如上图,将宝塔防火墙默认页面,修改成自定义,注:这是开启nginx|apache防火墙的“增强模式”才会有的跳转检测盾<br />预览地址:<a href="https://ikmoe.com/ikmoe/project/btwafindex.html" target="_blank" rel="noopener noreferrer">https://ikmoe.com/ikmoe/project/btwafindex.html</a><br />HTML代码如下,复制黏贴即可,可以随意修改
<!-- 文件路径/www/server/btwaf/init.lua -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> <!-- 网页编码 -->
<title>月宅酱|月宅神社-今天也要看我秀吗?</title> <!-- 网站标题 -->
<meta name="description" content="今天也要看我装逼吗?" /> <!-- 网站描述 -->
<meta name="keywords" content="月宅酱,雪樱,WordPress主题,干货,教程,软件" /> <!-- 网站关键词 -->
<link rel="icon" sizes="192x192" href="https://img.ikmoe.com/wp-img/uploads/[email protected]"> <!-- ico地址 -->
<style type="text/css">
/*网页背景图*/body{
background-image:url(https://img.ikmoe.com/images/2019/04/25/ae0233ef3a731801005b3e58f194eeb2.jpg);
background-size: cover;
background-repeat: no-repeat;
}
/*透明图*/.ikmoe1{
margin:0 auto;
text-align:center;
background-image: url(https://img.ikmoe.com/images/2019/05/28/3e5ddee6403ca5d812699935fb4c7145.png);
width: 800px;
height: auto;
margin-top: 120px;
}
.ikmoe0{
width:100%;
height: auto;
}
.ikmoe2 img{
width:250px;
}
#ikmoe3{
font-size:65px;
color: #fff;
}
.ikmoe4{
margin-top: 15px;
}
</style>
</head>
<body>
<div class="ikmoe1">
<h1 id="ikmoe3">欢迎进入月宅酱的博客~</h1>
<h3 id="ikmoe4">稍等一下,精彩内容正在加载中...</h3>
<div class="ikmoe2"><img src="https://img.ikmoe.com/images/2019/05/28/219f8c2309141213019cc79dfa7d3dad.gif"></div>
<h6 class="ikmoe4">抱歉,我需要看你是否真心爱我,我正在对你进行安全检测</h6>
<img src="https://img.ikmoe.com/wp-img/uploads/[email protected]"></div>
<!-- 文字闪烁,red为红色 -->
<script type = "text/javascript" >
function blinklink() {
if (!document.getElementById('ikmoe4').style.color) {
document.getElementById('ikmoe4').style.color = "red";
}
if (document.getElementById('ikmoe4').style.color == "red") {
document.getElementById('ikmoe4').style.color = "black";
} else {
document.getElementById('ikmoe4').style.color = "red";
}
timer = setTimeout("blinklink()", 100);
}
function stoptimer() {
clearTimeout(timer);
}
blinklink()
</script>
</body>
</html>
教程
将以上代码复制到/www/server/btwaf/init.lua 第501行处,将原来的html代码删掉(删前备份),然后保存就完事
其他
开启增强模式后,建议到域名解析处增加一个“搜索引擎”线路,A记录源站IP,不会影响抓取。如果代码有错误,请自行更正。
转载自 月宅酱