V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
svipchao
V2EX  ?  服务器

服务器安装宝塔 8.0.4,现在所有站点切换手机版都调用远程 js 文件

  •  
  •   svipchao · 172 天前 · 791 次点击
    这是一个创建于 172 天前的主题,其中的信息可能已经有所发展或是发生改变。

    腾讯云最新优惠活动来了:云产品限时1折,云服务器低至88元/年 ,点击这里立即抢购:9i0i.cn/qcloud,更有2860元代金券免费领取,付款直接抵现金用,点击这里立即领取:9i0i.cn/qcloudquan

    (福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

    新建一个空 html 页面

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
    </head>
    <body>
      
    </body>
    </html>
    

    展示结果

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
    <script type="text/javascript" src="none"></script>
    </head>
    <body>
      
    </body>
    </html>
    
    1. 尝试重装 nginx
    2. 使用去年官方论坛 https://www.bt.cn/bbs/thread-105121-1-1.html 给出的排查木马命令 curl -sSO http://download.bt.cn/tools/wng_clean.py && python wng_clean.py && rm -rf wng_clean.py 提示没有木马文件
    3. 和这个里面讲的很像 https://cn-sec.com/archives/1471119.html

    论坛大佬多,有什么解决思路吗

    5 条回复  ?  2023-11-20 09:33:10 +08:00
    svipchao
        1
    svipchao  
    OP
       172 天前
    临时解决方案 在 nginx 配置文件加入
    ```
    sub_filter '<script type="text/javascript" src="https://cdn.bootscdns.org/ajax/libs/jquery/3.6.4/jquery.js"></script>' '';
    sub_filter_once off;
    ```
    重启 nginx
    chinacivi
        2
    chinacivi  
       172 天前
    网站多少?确定不是浏览器插件问题吗?
    svipchao
        3
    svipchao  
    OP
       172 天前
    @chinacivi 确定不是浏览器问题,这是别人反馈的
    lisxour
        4
    lisxour  
       172 天前
    宝塔能换就换了吧,1panel 好像挺不错的
    svipchao
        5
    svipchao  
    OP
       172 天前
    @lisxour 客户站点多,现在只能修复,然后慢慢换
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5527 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 09:22 · PVG 17:22 · LAX 02:22 · JFK 05:22
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com