当前位置:网站首页>网站页面禁止复制内容 JS代码
网站页面禁止复制内容 JS代码
2022-07-05 16:12:00 【withkai44】
在你的网页位置添加上这部分js代码
document.onselectstart = new Function('return false');
document.oncontextmenu = new Function('return false');
if (window.sidebar) {
document.onmousedown = new Function('return false');
document.onclick = new Function('return true');
document.oncut = new Function('return false');
document.oncopy = new Function('return false');
}
document.addEventListener('keydown', function (e) {
if (e.keyCode === 83 && (navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey)) {
e.preventDefault();
e.stopPropagation();
}
}, false);
边栏推荐
- Sentinel-流量防卫兵
- Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
- 关于new Map( )还有哪些是你不知道的
- Summary of PHP pseudo protocol of cisp-pte
- Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
- SQL injection of cisp-pte (Application of secondary injection)
- 数据湖(十四):Spark与Iceberg整合查询操作
- yarn 常用命令
- 帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
- The difference between searching forward index and inverted index
猜你喜欢
随机推荐
今日睡眠质量记录79分
Desci: is decentralized science the new trend of Web3.0?
【刷題篇】鹅廠文化衫問題
用键盘输入一条命令
EDI许可证和ICP经营性证有什么区别
Cartoon: what is distributed transaction?
The memory of a Zhang
BS-XX-042 基于SSM实现人事管理系统
搜索 正排索引 和 倒排索引 区别
Cs231n notes (bottom) - applicable to 0 Foundation
Oneforall installation and use
Deep dive kotlin synergy (XXI): flow life cycle function
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
树莓派4b安装Pytorch1.11
Solution of vant tabbar blocking content
[deep learning] how does deep learning affect operations research?
How was the middle table destroyed?
Cartoon: what is MapReduce?
深潜Kotlin协程(二十一):Flow 生命周期函数
详解SQL中Groupings Sets 语句的功能和底层实现逻辑


![[61dctf]fm](/img/22/3e4e3f1679a27d8b905684bb709905.png)






