关于如何防止别人偷到自己的文章,自己的wordpress主题源码等等方法,数不胜数,然而防不胜防。
其实,别人要想搞你,怎么都能搞到。没什么卵用。
今天给大家一段,防君子不防小人的网页禁止右键和F12的js
代码:
<script language=javascript>
function stop(){
clear();
return false;
}
document.oncontextmenu=stop;
function clear(){
window.location.reload();
}
document.onkeydown =document.onkeyup = document.onkeypress=function(){
clear();
return(false);
}
document.onselectstart=new Function('event.returnValue=false;');
</script>
来自四川 © 版权声明
本资源由用户投稿上传,内容来自互联网,本站只做免费推荐用于学习分享,如有版权及其他问题,请点击《侵权处理》
THE END
暂无评论内容