最新网址:m.feishuwx.net
感谢 (第1/3页)
//遇到cookie tf=1的话留在本站,否则跳转移动站
if (getCookie('tf') != 1) {
//判断是以下设备后跳转到m站
if (.match(/(iPhone|iPod|Android)/i)) {
f = "//m."
}
}else {
// M站设置了一年,这里fixed
setCookie('tf', 1, '', '/', 0);
}
// start 防劫持
//设置cookie
function setCookie(name, value, domain, path, expires) {
if(expires){
expires = ne Date(+ne Date() + expires);
}
var tempcookie = name + '=' + escape(value) +
((expires) ? '; expires=' + () : '') +
((path) ? '; path=' + path : '') +
((domain) ? '; domain=' + domain : '');
//Ensure the cookie's size is under the limitation
if( = 3){
reportUrl2 && reportUrl2!='' && createSender(reportUrl2);
}else{
reportUrl && reportUrl!=''&& createSender(reportUrl);
countHijack ++;
setCookie(cookieName, countHijack ,cookieDomain, '', 30*24*60*60*1000);
= ;
}
}
//每次成功进入页面则计数清0
setCookie(cookieName, 0 ,cookieDomain, '', 30*24*60*60*1000);
})();
(本章未完,请点击下一页继续阅读)
最新网址:m.feishuwx.net