blog view source code , disable code

 <script>

  // Disable Right-Click Context Menu

  document.addEventListener('contextmenu', function(e) {

    e.preventDefault();

  });


  // Block F12, Ctrl+U (View Source), Ctrl+Shift+I (DevTools), Ctrl+Shift+J (Console)

  document.onkeydown = function(e) {

    if (e.keyCode == 123 || 

       (e.ctrlKey && e.keyCode == 85) || 

       (e.ctrlKey && e.shiftKey && (e.keyCode == 73 || e.keyCode == 74))) {

      return false;

    }

  };

</script>


--------

just add this code, at end of scource code, it skip, right click option for end user.

Popular posts from this blog

SAP CPI : camle expression in sap cpi , cm, router, filter and groovy script. format

SAP CPI camel conditions and xpath conditions

chatgpt explanation: all retry messages in sap cpi, with example using jms sender.