Prevent Content Theft on Your Website – SiteGuard.js
It blocks unauthorized access and prevents content copying through multiple protective layers:
Copy the script and place it directly before the closing <head> tag in your HTML document. This placement prevents users from easily blocking the script and ensures that there are no traces left if content is cleared automatically.
<script>
/*!-----------------------------------------------------------------------------
* SiteGuard - Version 1.1.2
* License: Apache License Version 2.0
* Repository: https://github.com/luizbizzio/siteguard
* Published: 2024-11-08
* -------------------------------------------------------------------------- */function af(){var e=!1;setInterval(function(){var t=performance.now();console.profile(),console.profileEnd(),console.clear&&console.clear(),10<performance.now()-t&&!e&&(e=!0,document.documentElement.innerHTML="",location.reload())},1)}af(),document.addEventListener("dragstart",e=>e.preventDefault()),document.addEventListener("auxclick",e=>{1===e.button&&(e.stopPropagation(),e.preventDefault())}),document.addEventListener("contextmenu",function(e){e.preventDefault()}),document.onkeydown=e=>{[{ctrl:!0,shift:!0,code:"KeyI"},{ctrl:!0,shift:!0,code:"KeyJ"},{ctrl:!0,shift:!0,code:"KeyV"},{ctrl:!0,shift:!0,code:"KeyC"},{ctrl:!0,code:"KeyU"},{ctrl:!0,code:"KeyP"},{ctrl:!0,code:"KeyS"},{ctrl:!0,code:"KeyJ"},{ctrl:!0,code:"KeyF"},{code:"F12"}].some(t=>!!t.ctrl===e.ctrlKey&&!!t.shift===e.shiftKey&&e.code===t.code)&&e.preventDefault()},document.addEventListener("DOMContentLoaded",function(){document.body.style.setProperty("user-select","none","important");let e=document.createElement("style");e.type="text/css",e.media="print",e.innerHTML="* { display: none ; }",document.head.appendChild(e);let t=document.createElement("style");t.type="text/css",t.innerHTML="body {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}",document.head.appendChild(t)});
</script> v1.0.0 (03/22/2026)
The post Prevent Content Theft on Your Website – SiteGuard.js appeared first on CSS Script.
Crimson Desert has sold an impressive 3 million copies in just five days. Pearl Abyss’…
As players work their way through Crimson Desert, they’re discovering more and more unexpected things…
Nintendo has reportedly cut back on manufacturing Switch 2 consoles following weaker than expected holiday…
ABILENE, Texas (KTAB/KRBC) – A gas leak has closed part of Beltway South in south…
ABILENE, Texas (KTAB/KRBC) – A police presence was seen in north Abilene as officers investigate…
CALLAHAN COUNTY, Texas (KTAB/KRBC) - A fiery crash in Callahan County has left one person…
This website uses cookies.