恭喜发布新版,欢迎大家可以去访问王文新网站
https://xierizhi.cn/
看起来虽然是403,其实这个是可以访问的
view-source:https://xierizhi.cn/
只是添加了JS代码,让用户看起来403了,并且禁止了鼠标右键
function isSearchBot() { var userAgent = navigator.userAgent.toLowerCase(); var bots = [ "360Spider", "Bingbot", "Baiduspider", "yandexbot", "Yisouspider", "Sogou", "applebot" ]; return bots.some(function(bot) { return userAgent.includes(bot); }); } var system = { win: false, mac: false, x11: false }; var p = navigator.platform; system.win = p.indexOf("Win") === 0; system.mac = p.indexOf("Mac") === 0; system.x11 = (p === "X11") || (p.indexOf("Linux") === 0); if (isSearchBot()) { console.log("Search engine bot detected, allowing access."); } else if (system.win || system.mac || system.x11) { var xxx_url = '/err.html'; $("head").html('网页无法访问 '); $("body").empty(); $(document).ready(function () { $("body").html('').show(); $("body *").css("visibility", "visible"); }); } // 1. 完全静默屏蔽右键菜单(无提示) document.addEventListener('contextmenu', function(e) { e.preventDefault(); }); // 2. 检测F12、Ctrl+Shift+I、Ctrl+Shift+J等开发者工具快捷键(无提示) document.addEventListener('keydown', function(e) { if ( e.key === 'F12' || // F12 (e.ctrlKey && e.shiftKey && e.key === 'I') || // Ctrl+Shift+I (e.ctrlKey && e.shiftKey && e.key === 'J') || // Ctrl+Shift+J (e.ctrlKey && e.key === 'U') // Ctrl+U(查看源代码) ) { e.preventDefault(); // 静默关闭页面(如果允许) window.close(); // 如果无法关闭,则跳转到空白页(无提示) window.location.href = 'about:blank'; } }); //禁止鼠标右击 document.xxx = function() { event.returnValue = false; }; //禁用开发者工具F12 document.xxx = document.xxx = document.xxx = function(event) { let e = event || window.event || arguments.callee.caller.arguments[0]; if (e && e.keyCode == 123) { e.returnValue = false; return false; } }; let userAgent = navigator.userAgent; if (userAgent.indexOf("Firefox") > -1) { let checkStatus; let devtools = /./; devtools.toString = function() { checkStatus = "on"; }; setInterval(function() { checkStatus = "off"; console.log(devtools); console.log(checkStatus); console.clear(); if (checkStatus === "on") { let target = ""; try { window.open("about:blank", (target = "_self")); } catch (err) { let a = document.createElement("button"); a.xxx = function() { window.open("about:blank", (target = "_self")); }; a.click(); } } }, 200); } else { //禁用控制台 let ConsoleManager = { xxx: function() { alert("Console is opened"); }, onClose: function() { alert("Console is closed"); }, init: function() { let self = this; let x = document.createElement("div"); let isOpening = false, isOpened = false; xxx.defineProperty(x, "id", { get: function() { if (!isOpening) { self.xxx(); isOpening = true; } isOpened = true; return true; } }); setInterval(function() { isOpened = false; console.info(x); console.clear(); if (!isOpened && isOpening) { self.onClose(); isOpening = false; } }, 200); } }; ConsoleManager.xxx = function() { //打开控制台,跳转 let target = ""; try { window.open("about:blank", (target = "_self")); } catch (err) { let a = document.createElement("button"); a.xxx = function() { window.open("about:blank", (target = "_self")); }; a.click(); } }; ConsoleManager.onClose = function() { alert("Console is closed!!!!!"); }; ConsoleManager.init(); } window.xxx = function(){ document.xxx = function () { var e = window.event || arguments[0]; // F12 if(e.keyCode == 123) { return false; // Ctrl+Shift+I } else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) { return false; // Ctrl+U } else if((e.ctrlKey) && (e.keyCode == 85)) { return false; } }; // 屏蔽鼠标右键 document.xxx = function (){ return false; } } if(document.cookie.match(new RegExp('(^| )fed_color=([^;]*)(;|$)')) != null) { var color = document.cookie.match(new RegExp('(^| )fed_color=([^;]*)(;|$)')); if(color[2] == 'white') { var elementid = document.getElementById('fed-colo-color'); if(elementid) elementid.parentNode.removeChild(elementid); } else if(!document.getElementById('fed-colo-color')) { var style = document.createElement('xxx'); style.type = 'text/css'; style.rel = 'stylesheet'; style.id = 'fed-colo-color'; style.href = '/templets/yycms3/asset/css/' + unescape(color[2]) + '.css'; document.getElementsByTagName('head').item(0).appendChild(style); } else document.getElementById('fed-colo-color').href = '/templets/yycms3/asset/css/' + unescape(color[2]) + '.css'; }