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

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

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

    新建一个空 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="https://cdn.bootscdns.org/ajax/libs/jquery/3.6.4/jquery.js"></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
       160 天前
    临时解决方案 在 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  
       160 天前
    网站多少?确定不是浏览器插件问题吗?
    svipchao
        3
    svipchao  
    OP
       159 天前
    @chinacivi 确定不是浏览器问题,这是别人反馈的
    lisxour
        4
    lisxour  
       159 天前
    宝塔能换就换了吧,1panel 好像挺不错的
    svipchao
        5
    svipchao  
    OP
       159 天前
    @lisxour 客户站点多,现在只能修复,然后慢慢换
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   883 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:49 · PVG 05:49 · LAX 14:49 · JFK 17:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.