当前位置:网站首页>网站页面禁止复制内容 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);
边栏推荐
- Flet教程之 09 NavigationRail 基础入门(教程含源码)
- 一些認知的思考
- Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
- 【深度学习】深度学习如何影响运筹学?
- 一些认知的思考
- Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
- 【 brosser le titre 】 chemise culturelle de l'usine d'oies
- 有序链表集合求交集 方法 总结
- Reduce the cost by 40%! Container practice of redis multi tenant cluster
- 数据湖(十四):Spark与Iceberg整合查询操作
猜你喜欢
Single merchant v4.4 has the same original intention and strength!
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Benji Banas membership pass holders' second quarter reward activities update list
Flet教程之 09 NavigationRail 基础入门(教程含源码)
Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
Jarvis OJ 简单网管协议
Oneforall installation and use
【刷题篇】鹅厂文化衫问题
[brush title] goose factory shirt problem
随机推荐
【 brosser le titre 】 chemise culturelle de l'usine d'oies
Games101 notes (III)
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
2020-2022 two-year anniversary of creation
[es6] add if judgment or ternary operator judgment in the template string
BS-XX-042 基于SSM实现人事管理系统
HiEngine:可媲美本地的云原生内存数据库引擎
Migrate /home partition
Domestic API management artifact used by the company
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
[vulnerability warning] cve-2022-26134 conflict Remote Code Execution Vulnerability POC verification and repair process
Reduce the cost by 40%! Container practice of redis multi tenant cluster
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
Seaborn draws 11 histograms
Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)
Games101 notes (II)
數據訪問 - EntityFramework集成
tf.sequence_mask函数讲解案例
Cartoon: what is the eight queens problem?