Disable F12 Developer Tools Interface or F12 Key in JQuery


              Using F12 control Client User Can see the all Client side Like Html,Css,Jquery ,Javascript Files. these case not secured for our Web page.So We can use the Below code to Disable Developer Tools Using JQuery.

Code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Disable F12 Developer Tools Interface or F12 Key</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
    <script>
        $(document).keydown(function (event) {
            if (event.keyCode == 123) {
                return false;
            }
            else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) {
                return false;
            }
        });

        $(document).on("contextmenu", function (e) {
            e.preventDefault();
        });
    </script>
</head>
<body>
</body>

</html>

Comments

Popular posts from this blog

Insecure cookie setting: missing Secure flag

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Display Line Chart Using Chart.js MVC C#