福否阿卡 · 博客福否阿卡 · 博客

福否阿卡
向往自由与努力生活~

F12禁止扒代码 | 禁止复制网站文字 | 添加复制版权 | 禁止右键查看

F12禁止扒代码 | 禁止复制网站文字 | 添加复制版权 | 禁止右键查看

1.F12禁止扒代码

一段JavaScript代码即可实现上述功能,将以下代码插入到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>

原文地址:http://qimok.cn/340.html

2.禁止复制网站文字

将以下代码添加到footer.php中的<body></body>之间即可。


<!--禁止复制--> <script type="text/Javascript"
> document.onselectstart=function
(e){return
 false
;}; </script>

3.添加复制版权

将以下代码添加到footer.php中的<body></body>之间即可。

<script type="text/javascript"
>function
 warning(){ if
(navigator.userAgent.indexOf("MSIE"
)>0) { art.dialog.alert('复制成功,若要转载请务必保留原文链接,谢谢合作!'); } else
 { alert("复制成功,若要转载请务必保留原文链接,谢谢合作!"
); }}document.body.oncopy=function
(){warning();}</script>

4.禁止右键查看

有人会说虽然禁止了复制网站文字,但是可以右键查看源码呀,别急,这还有更绝的方法。

将以下代码添加到footer.php中的<body></body>之间即可。

<!--禁止右键查看--> <script type="text/Javascript"
> document.oncontextmenu=function
(e){return
 false
;}; </script>

原文地址:http://qimok.cn/604.html

福否阿卡,学而不止!

本文由福否阿卡创作,文章地址:https://blog.suyc.cn/index.php/archives/10.html

采用知识共享署名3.0国际许可协议进行许可。除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。

发表评论:2

    昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. AMOXIL is used to treat many different types of infections caused by bacteria, such as ear infections, bladder infections, pneumonia, gonorrhea, and E. coli or salmonella infection.
    Active Ingredient: Amoxicillin

    Can I Buy Amoxil Online

    Order Amoxil
    Get Online Neurontin No Prescription
    Order Amoxil 500mg Online
    Ordering Amoxil Online
    Purchasing Amoxil
    Buy Amoxil Online
    Amoxil Purchase
    Buy Amoxil No Prescription
    Order Amoxil Without Prescription
    Buy Neurontin Online Without Prescription
    Buy Amoxil 250mg Online Without Prescription
    Can You Buy Amoxil Online
    Buy Neurontin No Prescription
    Buying Amoxil

    inetryconydot (2021-03-18) 回复
  2. AMOXIL is used to treat many different types of infections caused by bacteria, such as ear infections, bladder infections, pneumonia, gonorrhea, and E. coli or salmonella infection.
    Active Ingredient: Amoxicillin

    Purchase Amoxil Online

    Amoxil Without Prescriptions Buy
    Buy Amoxil 250mg Online Without Prescription
    Purchase Amoxil
    Buy Online Antibiotics
    Buy Amoxil 500mg Online Without Prescription
    Amoxil Purchase
    Buy Cheap Amoxil Online
    Buy Doxycycline On Line
    Amoxil Buy
    Buy Amoxil On Line
    Get Amoxil 250mg Online
    Buy Online Amoxil
    Order Amoxil No Prescription
    Neurontn Buy Online
    Order Amoxil 500mg Online
    Buying Amoxil Online Uk
    Where Can I Buy Amoxil
    Get Amoxil 500mg Online
    Can I Buy Azithromycin Online
    Buy Amoxil
    Amoxil Online Uk Buy
    Buy Amoxil Without Prescription
    Buy Amoxil Online Next Day Delivery
    Amoxil Purchase Online
    Buying Amoxil Online
    Get Online Amoxil No Prescription
    Buy Amoxil 250mg Online

    inetryconydot (2021-04-15) 回复