当前位置:网站首页>网站页面禁止复制内容 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);
边栏推荐
- Games101 notes (III)
- 新春限定丨“牛年忘烦”礼包等你来领~
- PHP strict mode
- Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
- Games101 notes (I)
- Binary tree related OJ problems
- Cartoon: what is MapReduce?
- Oneforall installation and use
- 《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
- Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
猜你喜欢

Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found

Games101 notes (II)

Jarvis OJ 远程登录协议

Research and development efficiency measurement index composition and efficiency measurement methodology

【刷题篇】有效的数独

Flet教程之 09 NavigationRail 基础入门(教程含源码)

Single merchant v4.4 has the same original intention and strength!

解决CMakeList find_package找不到Qt5,找不到ECM

为季前卡牌游戏 MotoGP Ignition Champions 做好准备!

2020-2022两周年创作纪念日
随机推荐
Binary tree related OJ problems
DenseNet
Cartoon: what is blue-green deployment?
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
Dare not buy thinking
Combined use of vant popup+ other components and pit avoidance Guide
Single merchant v4.4 has the same original intention and strength!
[深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
Some cognitive thinking
Using graylog alarm function to realize the regular work reminder of nail group robots
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Seaborn draws 11 histograms
BS-XX-042 基于SSM实现人事管理系统
EDI许可证和ICP经营性证有什么区别
Sentinel-流量防卫兵
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
[deep learning] how does deep learning affect operations research?
Games101 notes (I)
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要