Jump to content

Script Blocare F12 pe Site


xhakon
 Share

Recommended Posts

Salutare tuturor, se trece usor de aceasta ,,protectie,, dar, pentru incepatori, eu zic ca isi face treaba.

//////////F12 disable code - WWW.LEAKS.RO ////////////////////////
    document.onkeypress = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
           //alert('No F-12');
            return false;
        }
    }
    document.onmousedown = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
            //alert('No F-keys');
            return false;
        }
    }
document.onkeydown = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
            //alert('No F-keys');
            return false;
        }
    }
/////////////////////end///////////////////////
</script>

 

Aici aveti codurile la fiecare tasta in parte, inlocuiti doar

 if (event.keyCode == 123)  

 

https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes

Daca doriti sa blocati alte taste (precum f13, f14.. s.a.m.d )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...