Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4389dbc

Browse files
Merge branch 'main' of https://github.com/love2wind/Doc into main
2 parents 90ab33b + b28fca4 commit 4389dbc

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

‎docs/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
})
218218
</script>
219219
</body>
220-
220+
<scriptasyncdeferdata-website-id="7fc73fe0-fd7c-420d-93bd-2317178ca3ef" src="https://umi.love2wind.com/umami.js"></script>
221221
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
222222
<!--侧边栏插件-->
223223
<script src="//cdn.jsdelivr.net/npm/@alertbox/docsify-footer/dist/docsify-footer.min.js"></script>

‎docs/note/jichu/other.md‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,29 @@ function getthemonth($date)
325325
$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day"));
326326
return array($firstday, $lastday);
327327
}
328-
```
328+
```
329+
330+
防止右键复制
331+
document.oncontextmenu=new Function("event.returnValue=false");
332+
document.onselectstart=new Function("event.returnValue=false");
333+
">
334+
防F12(无法直接防止开发者工具的调出)
335+
document.onkeydown = function () {
336+
337+
if (window.event && window.event.keyCode == 123) {
338+
339+
event.keyCode = 0;
340+
341+
event.returnValue = false;
342+
343+
return false;
344+
345+
}
346+
347+
};
348+
">
349+
禁止调取开发者模式
350+
https://github.com/sindresorhus/devtools-detect
351+
352+
防止盗用博客图片
353+
服务器开启防盗链,使用对象存储的开启域名防盗链,给自己的站设置白名单,并禁止空referer请求(这样会导致直接点进图片链接的人无法下载)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /