Disable inspect element - DevTools in your Website Nguyễn Công Dũng on March 14, 2022 A Website can build with simple HTML / CSS / Javascript. When you published, all source code can see with DevTools of Browser. What is D... Read full post Submit Preview Dismiss Collapse Expand Harshad Harshad Harshad Follow I am a proficient Front-end web developer, with over 9 years of experience, and have knowledge of various areas of developing, which includes Front-end, Back-end, Codeigniter,Wordpress, Shopify etc Location Mumbai, India Joined Nov 21, 2018 • Feb 8 '23 Dropdown menu Copy link Hide Neat trick, Do you have any idea on how to prevent site access, if the user opens the devtools from navigation menu. Check this website for reference: mca.gov.in/content/mca/global/en/h... Collapse Expand pvcodes pvcodes pvcodes Follow I am a Jr Full stack developer with just around 5 years of broken experience Trying to get back to my career full swing with utmost relevance Education India Work Full stack web developer Joined Nov 14, 2022 • Mar 16 '23 Dropdown menu Copy link Hide How to do that? Collapse Expand Sai Sandeep Saka Sai Sandeep Saka Sai Sandeep Saka Follow Joined Apr 9, 2025 • Apr 9 '25 Dropdown menu Copy link Hide can u say how to do it Collapse Expand Sid Sid Sid Follow Joined Apr 4, 2023 • Apr 4 '23 • Edited on Apr 4 • Edited Dropdown menu Copy link Hide here you go buddy. disable-devtool Just a side note, by default doesn't work on debug mode, works on release mode. Enjoy Collapse Expand Mahesh Basnet Mahesh Basnet Mahesh Basnet Follow Joined Oct 23, 2021 • Sep 27 '23 Dropdown menu Copy link Hide hello can u show me the code to prevent site from navigation menu devtools click? Sid Sid Sid Follow Joined Apr 4, 2023 • Oct 1 '23 • Edited on Oct 1 • Edited Dropdown menu Copy link Hide Just add this cdn on the page where you want to disable the dev-tools. Example if you have a master page then add on the master page. Login -> MasterPage. If you add to master page then if someone try to inspect then it will take them to login page. It didn't allow me to paste the script directly, so I am doing like this: <$cR!Pt disable-devtool-auto src='cdn.jsdelivr.net/npm/disable-devtool' ></$cR!Pt> Just replace: $cR!Pt with -> script, on both opening and closing tags. Since it is a cdn, you can copy and paste the url in your browser and then it will show you the code. Collapse Expand Kolja Kolja Kolja Follow Joined Oct 7, 2021 • Mar 19 '22 Dropdown menu Copy link Hide You can hack it by: open DevTools -> goto your "protected" site. Collapse Expand Agni R. Rammohan Agni R. Rammohan Agni R. Rammohan Follow hi Joined Dec 11, 2024 • Apr 29 '25 Dropdown menu Copy link Hide They will just use tapermonkey/extention or bookmarklet or url js Collapse Expand Ande Caleb Ande Caleb Ande Caleb Follow Senior FrontEnd Developer ( React / Next / TS / Tailwind / WebGL(ThreeJS + GSAP) open to REMOTE work... Email andaeiii@gmail.com Location Abuja, Nigeria Education Federal University of Technology, Mx, Nigeria Pronouns He/Him Work Senior Frontend Developer Joined Jul 19, 2022 • Nov 29 '22 Dropdown menu Copy link Hide you can hack this by pressing F12 on the keyboard... use the devtools.js ( devtools.isOpen) functionality to control and restrict access Collapse Expand CodeTester547 CodeTester547 CodeTester547 Follow Joined Jan 14, 2024 • Jan 14 '24 Dropdown menu Copy link Hide Dev tool can be closed completely using Script. Check this for reference: How to Disable Developer Tools completely for your webpage? Code of Conduct • Report abuse
Neat trick,
Do you have any idea on how to prevent site access, if the user opens the devtools from navigation menu.
Check this website for reference:
mca.gov.in/content/mca/global/en/h...
How to do that?
can u say how to do it
here you go buddy.
disable-devtool
Just a side note, by default doesn't work on debug mode, works on release mode. Enjoy
hello can u show me the code to prevent site from navigation menu devtools click?
Just add this cdn on the page where you want to disable the dev-tools. Example if you have a master page then add on the master page.
Login -> MasterPage.
If you add to master page then if someone try to inspect then it will take them to login page.
It didn't allow me to paste the script directly, so I am doing like this:
<$cR!Pt disable-devtool-auto src='cdn.jsdelivr.net/npm/disable-devtool' ></$cR!Pt>
Just replace: $cR!Pt with -> script, on both opening and closing tags.
Since it is a cdn, you can copy and paste the url in your browser and then it will show you the code.
You can hack it by:
open DevTools -> goto your "protected" site.
They will just use
tapermonkey/extention
or
bookmarklet
or
url js
you can hack this by pressing F12 on the keyboard... use the devtools.js ( devtools.isOpen) functionality to control and restrict access
Dev tool can be closed completely using Script.
Check this for reference:
How to Disable Developer Tools completely for your webpage?