Disable inspect element check

Asked

Viewed 2,340 times

0

Is there any way to disable or hide the inspect element option when the person right-clicking or Ctrl+Shift+I on a web page?

  • Not because the user owns the operating system and the browser, and has full control over it. He can even save the page to the computer and access the code. And there are other ways to inspect, by pressing F12, in the browser menu and so on :) CTRL+U tb will open the source code...

  • you can cancel Handler from the right button, but I’ve never seen anyone lock Ctrl+Shift+i or F12

  • All right, thanks for explaining!

  • 1

    @Murilogambôa not even that, if the user wants. Simply change the browser settings so that the right button is not intercepted (usually in advanced options and/or flags).

  • 1

    Frankly, what you need is to solve another problem that is not in the question. In normal situations nothing justifies this need (but can [Dit] the post if it actually has any real reason)

  • @Bacco was just a doubt, because I thought I could block in the same way that it is possible to block Ctrl + u, for example. But thanks for the answers.

  • Can’t block control + u, just make it harder

  • Well, I got it right-click on Ctrl + u with the following script: $(Document). ready(Function(){ $(Document). keydown(Function(e){ var key=window.event.keycode; if (key==123){ Event.returnValue=false; } var Ctrl=window.event.ctrlKey; if(Ctrl && e.which == 85){ Refalse turn; } }); $(Document). ready(Function(){ $(Document). bind("contextmenu",Function(e){ Return false; }); }); });

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.