javascriptjquerysecuritybrowsercode-inspection

how this website is hiding all in inspect elements?


I have been through a website

It had blocked F12,Ctrl+shift+I,right click

So I tried from options->More Settings-> Developer Tools

But still, the elements tab is empty? Why or how is it doing this?

site : https://uplod.net/ahfdhke06rhca656yw0e

enter image description here


Solution

  • It's not well formatted, but I captured this by curling the url.

    function disable_developer_tool(){
      let checkStatus;
    hotkeys("command+option+j,command+option+i,command+shift+c,command+option+c,command+option+k,command+option+z,command+option+e,f12,ctrl+shift+i,ctrl+shift+j,ctrl+shift+c,ctrl+shift+k,ctrl+shift+e,shift+f7,shift+f5,shift+f9,shift+f12",
    (
      function(e,t){e.preventDefault()
    }));
    let element=new Image;
    Object.defineProperty(element,"id",{
      get:function(){
        throw checkStatus="on",new Error("Dev tools checker")
      }
    }),
    requestAnimationFrame((function check({
      checkStatus="off",
      console.dir(element),
      "on"===checkStatus?(document.body.parentNode.removeChild(document.body),document.head.parentNode.removeChild(document.head),setTimeout((function(){for(;;)eval("debugger")}),100)):requestAnimationFrame(check)}))}
    

    This watches for events that would open the developer console and deletes all the elements and drops the debugger into an endless loop. It looks like it's attached to the mdpUnGrabber library which attempts to kill adblock.

    Here's an article about it. https://ibug.io/blog/2020/08/work-against-wordpress-deblocker/