Disable inspect element [CMS Security]

Nicholas

Just another user:)
Mar 18, 2015
58
9
This is probably the best way of going about this.
Add these in your head tag (<head></head>)
First disable F12 element
HTML:
<script>
$(document).keydown(function(e){
    if(e.which === 123){
       return false;
    }
});
</script>
Then disable inspect element on right click
HTML:
<script>
$(document).bind("contextmenu",function(e) {
e.preventDefault();
});
</script>
so I wanna help make retros secure. If you have any problems contact my Skype at nenglish0820
I have an example on a retro called Vox Hotel, on the login page
 

Nicholas

Just another user:)
Mar 18, 2015
58
9
There's really no way to prevent the user viewing your source, you should focus on the contents of your source instead.
Iknow but if you are trying to not make it easy to access it you can add this but it is still possible to access it. Just dont want to make it easy.
 

Brought

更加努力
Jan 14, 2013
595
203
Iknow but if you are trying to not make it easy to access it you can add this but it is still possible to access it. Just dont want to make it easy.
I appreciate the attempt and your overall intentions. I agree with @Geo but at the same time this is also still a quality release in my eyes. Not many people consider ways to help keep their hotel more safe.
 

Users who are viewing this thread

Top