宝塔迷 - 宝塔面板防火墙 https://www.baota.me/tag/btwaf.html 简易宝塔防火墙拦截页面代码 https://www.baota.me/post-228.html 2023-02-27T23:05:00+08:00 修改方法宝塔防火墙拦截页面修改教程防火墙代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>请求不被许可</title> <style type="text/css"> <!-- body {margin: 0px; padding:0px; font-family:"微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,Baskerville,Palatino,Times; font-size:16px;} div{margin-left:auto; margin-right:auto;} a {text-decoration: none; color: #1064A0;} a:hover {color: #0078D2;cursor: pointer} img { border:none; } h1,h2,h3,h4 { /* display:block;*/ margin:0; font-weight:normal; font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana ; } h1{font-size:44px; color:#0188DE; padding:20px 0px 10px 0px;} h2{color:#0188DE; font-size:16px; padding:10px 0px 40px 0px;} #wrapper{width:100%;} #page{width:910px; padding:20px 20px 40px 20px; margin-top:80px;} .button{width:180px; height:28px; margin-left:0px; margin-top:10px; background:#009CFF; border-bottom:4px solid #0188DE; text-align:center;} .button a{width:180px; height:28px; display:block; font-size:14px; color:#fff; } .button a:hover{ background:#5BBFFF;} a.apply-btn { display: inline-block; width: 200px; height: 50px; line-height: 50px; background: #0188DE; font-size: 20px; color: #cdfff7; text-align: center; } .detail-info{ padding: 10px 0; border: 1px solid red; height: auto; width: 400px; position: absolute; left: 0; top:21px; background: #fff; border-radius: 3px; display: none; } .active .detail-info{ display: block; } .msg-item{ padding:0 20px; line-height: 26px; font-size: 14px; color:#000; } .msg-item label{ float:left; height: 26px; line-height: 26px; width:100px; text-align: right; } .msg-item div{ overflow: hidden; line-height: 26px; word-wrap: break-word; word-break: break-all; } --> </style></head> <body> <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script> <div id="wrapper"> <div id="page" style="border-style:dashed; border-color:#e4e4e4; line-height:30px; no-repeat right 130px;"> <h1 style="text-align: center;">很抱歉, 您的操作被防火墙拦截!</h1> <h2 style="text-align: center;">Sorry, Do not do it. </h2> <p style="text-align: center;"> <font color="green">您的IP地址已被记录:</font> <font color="red"> <script type="text/javascript"> document.write(returnCitySN["cip"] + ', 地区:' + returnCitySN["cname"]+",浏览器版本:"+getBrowserInfo()); function getBrowserInfo() { var agent = navigator.userAgent.toLowerCase() ; var regStr_ie = /msie [\d.]+;/gi ; var regStr_ff = /firefox\/[\d.]+/gi var regStr_chrome = /chrome\/[\d.]+/gi ; var regStr_saf = /safari\/[\d.]+/gi ; //IE if(agent.indexOf("msie") > 0) { return agent.match(regStr_ie) ; } //firefox if(agent.indexOf("firefox") > 0) { return agent.match(regStr_ff) ; } //Chrome if(agent.indexOf("chrome") > 0) { return agent.match(regStr_chrome) ; } //Safari if(agent.indexOf("safari") > 0 && agent.indexOf("chrome") < 0) { return agent.match(regStr_saf) ; } } </script></font></p> </div> </div> </body> </html> 宝塔防火墙拦截页面修改教程 https://www.baota.me/post-219.html 2023-02-27T20:08:00+08:00 宝塔防火墙拦截页面辨识度还是很高的,更换宝塔防火墙页面模板可以迷惑攻击者,可减少或者避免攻击者知道你使用的宝塔面板,利用宝塔的漏洞攻击你的几率。因此建议有条件的自行设计个拦截页面。相关文章修改方法打开防火墙插件 - 全局设置 - 找到响应内容然后修改内容即可 关闭宝塔防火墙攻击地图报错弹窗 https://www.baota.me/post-188.html 2022-10-21T11:18:00+08:00 简单介绍由于百度对地图api做了调整,目前面板的防火墙频繁弹窗影响正常使用,官方在新版本防火墙去掉了该功能,使用新版本面板的更新一下防火墙即可。如不方便更新可以使用本教程处理一下即可。进入防火墙目录找到模板文件编辑编辑文件 /www/server/panel/plugin/btwaf/templates/index.html删除攻击地图导航删除地图api重新打开防火墙就不在弹窗了 宝塔免费apache防火墙:宝塔企业版防火墙-测试版 https://www.baota.me/post-68.html 2022-02-13T22:07:00+08:00 插件说明此防火墙在21年3-4月份上线的测试版。只支持apache,但后续被下架了。目前宝塔并没有删除安装脚本以及插件文件。安装命令ywget -O modbtywaf.sh http://download.bt.cn/install/plugin/modbtywaf/install.sh && sh modbtywaf.sh插件截图