Linux宝塔面板9.1.0以上优化移除首页软件推送广告教程记着收藏哦,新版本的宝塔面板广告改变了规则,8.2以下的去广告方法已经不适用新宝塔面板,功夫不负有心人小编找了半天终于找到了首页软件推荐的广告代码,测试删除Js里的广告无效果,刷新后还会再次生成,官方也真够苟的,Js删除了也会自动还原,下面手动修改方法。

面板修改教程:

搜索default_pay_type.json 删除2232-2296行列代码,找到以下代码删除掉即可

    {
        "type": 1,
        "describe": "首页-软件管理-常用软件推荐",
        "show": True,
        "route": "home",
        "list": [
            {
                "pay": "40",
                "title": "网站防火墙",
                "name": "btwaf",
                "isBuy": False,
                "install": False,
                "pid": 100000010,
                "dependent": "nginx",
                "pluginType": "pro",
                "preview": "https://www.bt.cn/new/product_nginx_firewall.html",
                "ps": "web防火墙,有效抵御CC攻击、SQL注入、XSS跨站攻击、建站程序漏洞、一句话木马等常见渗透攻击"
            },
            {
                "pay": "40",
                "title": "网站防火墙",
                "name": "btwaf_httpd",
                "install": False,
                "isBuy": False,
                "pid": 100000012,
                "pluginType": "pro",
                "dependent": "apache",
                "preview": "https://www.bt.cn/new/product_nginx_firewall.html",
                "ps": "web防火墙,有效抵御CC攻击、SQL注入、XSS跨站攻击、建站程序漏洞、一句话木马等常见渗透攻击"
            },
            {
                "pay": "41",
                "title": "网站监控报表-重构版",
                "name": "monitor",
                "isBuy": False,
                "install": False,
                "pluginType": "pro",
                "pid": 100000014,
                "preview": "https://www.bt.cn/new/product_website_total.html",
                "ps": "网站监控报表,实时精确统计网站流量、ip、uv、pv、请求、蜘蛛等数据"
            },
            {
                "pay": "42",
                "title": "堡塔企业级防篡改-重构版",
                "name": "tamper_core",
                "isBuy": False,
                "install": False,
                "preview": "",
                "pid": 100000067,
                "pluginType": "ltd",
                "ps": "事件型防篡改程序,可有效保护网站重要文件不被木马篡改"
            },
			{
                "pay": "43",
                "title": "堡塔防入侵",
                "name": "bt_security",
                "isBuy": False,
                "install": False,
                "pid": 100000054,
                "pluginType": "ltd",
                "preview": "",
                "ps": "防御大多数的入侵提权攻击造成的挂马和被挖矿"
            }
        ]
    },

 

发表回复

后才能评论