技术宅

网站防止扒代码扒图大集合+审核元素空白+禁止复制+F12卡死

技术宅Javascript代码2020-01-071215浏览0

近刚写的网站代码被人扒!辛苦做的图片被人扒改改直接用。

有个神奇的东西叫做审查元素,按下神奇的F12,就是见证奇迹的时刻。审查元素真的是一个强大功能,有的时候看中别人网站的某个样式做的比较好,按下F12审查元素来查看别人的代码,统统扒过来。那么如果防止别人查看自己网站的代码,扒代码呢,当然,也只是防新手而已~心理安慰~

一、防F12扒代码:按下F12关闭当前页面

使用方法:添+到footer.php即可,高手一般能破解,哈哈。

<script>function fuckyou(){window.close(); //关闭当前窗口(防抽)  window.location="about:blank"; //将当前窗口跳转置空白页  }function ck() {console.profile();console.profileEnd();//我们判断一下profiles里面有没有东西,如果有,肯定有人按F12了,没错!!  if(console.clear) { console.clear() };if (typeof console.profiles =="object"){return console.profiles.length > 0;}}function hehe(){if( (window.console && (console.firebug || console.table && /firebug/i.test(console.table()) )) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)){fuckyou();}if(typeof console.profiles =="object"&&console.profiles.length > 0){fuckyou();}}hehe();window.onresize = function(){if((window.outerHeight-window.innerHeight)>200)//判断当前窗口内页高度和窗口高度,如果差值大于200,那么呵呵  fuckyou();}</script><!-------------------------------  上方是代码  ------------------------><script><!--document.write(unescape("%3Chtml%3E%0A%3Chead%3E%0A%20%20%3Cmeta%20charset%3D%22utf-8%22%3E%0A%20%20%3Ctitle%3E%u4EE3%u7801%u8FD0%u884C%u6D4B%u8BD5-%u6E90%u7801%u8BBA%u575B%3C/title%3E%0A%20%20%3Cmeta%20name%3D%22renderer%22%20content%3D%22webkit%22%3E%0A%20%20%3Cmeta%20http-equiv%3D%22X-UA-Compatible%22%20content%3D%22IE%3Dedge%2Cchrome%3D1%22%3E%0A%20%20%3Cmeta%20name%3D%22viewport%22%20content%3D%22width%3Ddevice-width%2C%20initial-scale%3D1%2C%20maximum-scale%3D1%22%3E%0A%20%20%3Clink%20rel%3D%22stylesheet%22%20type%3D%22text/css%22%20href%3D%22https%3A//www.layuicdn.com/layui/css/layui.css%22%20/%3E%0A%20%20%3Cscript%20src%3D%22https%3A//www.layuicdn.com/layui/layui.js%22%3E%3C/script%3E%0A%3C/head%3E%0A%3Cbody%20bgcolor%3D%22%23f5f8ff%22%3E%0A%3Cdiv%20class%3D%22layui-row%22%3E%0A%09%3Cdiv%20class%3D%22layui-container%22%20style%3D%22top%3A200px%3B%22%3E%20%20%0A%09%09%3Cdiv%20class%3D%22layui-card%20layui-bg-red%22%20align%3D%22center%22%3E%0A%09%09%20%3Cdiv%20class%3D%22layui-card-header%20layui-bg-green%22%20style%3D%22background%3A%23f9f9f9%3B%20font-size%3A20px%3B%20margin-bottom%3A20px%20color%3A%23666%22%3E%u6E90%u7801%u8BBA%u575B-%u4F18%u8D28%u6E90%u7801%u5206%u4EAB%u5E73%u53F0%3C/div%3E%0A%09%09%20%20%3Cdiv%20class%3D%22layui-card-body%20layui-bg-gray%22%20style%3D%22background%3A%23f9f9f9%3B%20line-height%3A80px%3B%20font-size%3A30px%3B%20color%3A%23666%22%3E%0A%09%09%20%20%20%3Cbr%3E%0A%09%09%20%20%20%3Cstrong%3E%u53F3%u51FB%u5BA1%u6838%u5143%u7D20%20%u8BD5%u8BD5%3C/strong%3E%3Cbr%3E%0A%09%09%20%20%20%3Cstrong%3E%u6309%u4E0BF12%u8BD5%u8BD5%3C/strong%3E%0A%09%09%20%20%20%3Cbr%3E%3Cbr%3E%0A%09%09%20%20%3C/div%3E%0A%09%09%3C/div%3E%09%0A%09%3C/div%3E%0A%3C/div%3E%0A%3C/body%3E%0A%3C/html%3E"));//--></script>

二、防F12扒代码:按下F12画面卡死

使用方法:添+到footer.php即可,这个也能破解,感觉这个更牛一点。

<script type="text/Javascript">function inlobase_noF12(){while(1){}}function inlojv_console(){if((window.console&&(console.firebug||console.table&&/firebug/i.test(console.table())))||(typeof opera=="object"&&typeof opera.postError=="function"&&console.profile.length>0)){inlobase_noF12()}if(typeof console.profiles=="object"&&console.profiles.length>0){inlobase_noF12()}}inlojv_console();window.onresize=function(){if((window.outerHeight-window.innerHeight)>200){inlobase_noF12()}};</script><!-------------------------------  上方是代码  ------------------------><script><!--document.write(unescape("%3Chtml%3E%0A%3Chead%3E%0A%20%20%3Cmeta%20charset%3D%22utf-8%22%3E%0A%20%20%3Ctitle%3E%u4EE3%u7801%u8FD0%u884C%u6D4B%u8BD5-%u6E90%u7801%u8BBA%u575B%3C/title%3E%0A%20%20%3Cmeta%20name%3D%22renderer%22%20content%3D%22webkit%22%3E%0A%20%20%3Cmeta%20http-equiv%3D%22X-UA-Compatible%22%20content%3D%22IE%3Dedge%2Cchrome%3D1%22%3E%0A%20%20%3Cmeta%20name%3D%22viewport%22%20content%3D%22width%3Ddevice-width%2C%20initial-scale%3D1%2C%20maximum-scale%3D1%22%3E%0A%20%20%3Clink%20rel%3D%22stylesheet%22%20type%3D%22text/css%22%20href%3D%22https%3A//www.layuicdn.com/layui/css/layui.css%22%20/%3E%0A%20%20%3Cscript%20src%3D%22https%3A//www.layuicdn.com/layui/layui.js%22%3E%3C/script%3E%0A%3C/head%3E%0A%3Cbody%20bgcolor%3D%22%23f5f8ff%22%3E%0A%3Cdiv%20class%3D%22layui-row%22%3E%0A%09%3Cdiv%20class%3D%22layui-container%22%20style%3D%22top%3A200px%3B%22%3E%20%20%0A%09%09%3Cdiv%20class%3D%22layui-card%20layui-bg-red%22%20align%3D%22center%22%3E%0A%09%09%20%3Cdiv%20class%3D%22layui-card-header%20layui-bg-green%22%20style%3D%22background%3A%23f9f9f9%3B%20font-size%3A20px%3B%20margin-bottom%3A20px%20color%3A%23666%22%3E%u6E90%u7801%u8BBA%u575B-%u4F18%u8D28%u6E90%u7801%u5206%u4EAB%u5E73%u53F0%3C/div%3E%0A%09%09%20%20%3Cdiv%20class%3D%22layui-card-body%20layui-bg-gray%22%20style%3D%22background%3A%23f9f9f9%3B%20line-height%3A80px%3B%20font-size%3A30px%3B%20color%3A%23666%22%3E%0A%09%09%20%20%20%3Cbr%3E%0A%09%09%20%20%20%3Cstrong%3E%u53F3%u51FB%u5BA1%u6838%u5143%u7D20%20%u8BD5%u8BD5%3C/strong%3E%3Cbr%3E%0A%09%09%20%20%20%3Cstrong%3E%u6309%u4E0BF12%u8BD5%u8BD5%3C/strong%3E%0A%09%09%20%20%20%3Cbr%3E%3Cbr%3E%0A%09%09%20%20%3C/div%3E%0A%09%09%3C/div%3E%09%0A%09%3C/div%3E%0A%3C/div%3E%0A%3C/body%3E%0A%3C/html%3E"));//--></script>


郑重声明:

本站大部分资源收集于网络以及网友投稿,本不保证资源的完整性以及安全性,请下载后自行测试。
本站资源仅供下载者研究交流为目的,仅供大家参考、学习,版权归资源原作者所有,请在下载后24小时之内自觉删除。
若作商业用途或用于其他商业活动,请您购买正版授权并合法使用,由于未及时购买正版发生的侵权行为,与本站无关。
如您是版权方,本站源码有侵犯到您的权益,请及时向源码论坛提出权利通知,将身份证明、权属证明、具体链接(URL)及及详细侵权情况证明发往yuanmaluntan#qq.com 收到您的邮件后,我们将及时处理!

继续浏览有关asp网站源码的文章
发表评论
广告