No copying, printing as well as opening developers tools.
Warning: This script may not work in Chrome 77.
Warning: This script may not work in Chrome 77.
Warning: This script may not work in Chrome 77.
No copying, printing as well as opening developers tools.
It can prevents user from :
You can use CSS if you don't run Javascript. But for safety, you should use this javascript and make your page only show when the Javscript is on.
Download and install pageguard.min.js
var anticopy_key = PageGuard.antiCopy();
You can use the following codes to allow user to copy again (Cannot clear the CSS):
PageGuard.allowCopy(anticopy_key);
Supported:
It can only run one at the same time.
var detectDevTools_key = PageGuard.detectDevTools(function () {
// Your codes will run when developers tools is opening
});
You can also use the following codes to stop detecting:
PageGuard.stopDetectingDevTools(detectDevTools_key);
Detect:
var detectSuspect_key = PageGuard.detectSuspectActions(function(){
// Run when it begins
},function(){
// Run when it ends
});
Stop it:
PageGuard.stopDetectingSuspectActions(detectSuspect_key);
This will disable follwing functions to keep users from running some scripts:
PageGuard.disableFunctions();
Warning: With disabling these functions, your codes may not work well
Don't let user get the key. You can write your codes like this:
(function () {
// codes
})();
Download and install anticopy.min.css
https://netrvin.github.io/PageGuard.js/example.html
https://github.com/sindresorhus/devtools-detect
https://stackoverflow.com/questions/7798748/find-out-whether-chrome-console-is-open