9.Page content protection
Last updated
Last updated
To be able to secure the information on the Landing Page, to prevent the theft of images and information on the page, you should copy the folllowing code and paste it into the Header tag.
This code will have effect of preventing text copying and viewing the source code to get the image link.
<script>document.addEventListener("contextmenu",e=>e.preventDefault()),document.onkeydown=function(e){return 123!=e.keyCode&&((!e.ctrlKey||!e.shiftKey||73!=e.keyCode)&&((!e.ctrlKey||!e.shiftKey||74!=e.keyCode)&&((!e.ctrlKey||85!=e.keyCode)&&void 0)))};</script><style>body{-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}</style>