全球主机交流论坛

标题: 如何防止防止网站被镜像或者大批量copy? [打印本页]

作者: realaction    时间: 2018-11-29 18:21
标题: 如何防止防止网站被镜像或者大批量copy?
如何防止防止网站被镜像或者大批量copy?   突然搜到三各copy站,除了首页标题其他页面一毛一样,有大神知道怎么消除影响或者预防的吗?
作者: hyear    时间: 2018-12-3 13:43
战略mark  搜了好久这个问题。
作者: Youngxj    时间: 2018-12-4 09:35
首先镜像是iframe和反代两种
iframe可以使用js代码屏蔽iframe
  1. <script>
  2. this.top.location !== this.location && (this.top.location = this.location);
  3. </script>
复制代码


其次是反代
在程序中加入以下逻辑代码
1、获取状态栏地址
2、对比固定地址,是否匹配
3、不匹配则跳转到源站

这个逻辑也可以用在iframe上,也能达到效果
作者: 午夜磨牙    时间: 2018-12-4 14:25
怎么搜啊?
作者: raksmart    时间: 2019-1-3 12:05
学习一下
作者: 欧洲人    时间: 2019-1-17 23:30
提示: 作者被禁止或删除 内容自动屏蔽
作者: 深蓝的蓝    时间: 2019-3-1 14:32
有些waf带防盗链可以防止不?
作者: jsdv    时间: 2019-7-16 15:27
  1. <img style="display:none" src=" " onerror='this.onerror=null;var currentDomain="www." + "你的域名" + ".com"; var str1=currentDomain; str2="docu"+"ment.loca"+"tion.host"; str3=eval(str2) ;if( str1!=str3 ){ do_action = "loca" + "tion." + "href = loca" + "tion.href" + ".rep" + "lace(docu" +"ment"+".loca"+"tion.ho"+"st," + "currentDomain" + ")";eval(do_action) }' />
复制代码





欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4