WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
This plugin blocks non-admin users from using inspect element, while still allowing access those with manage_options permission.
Developer Tools Blocker is a WordPress plugin designed to restrict non-admin users from accessing browser developer tools, such as the inspect element feature. It allows users with the manage_options permission to retain access while blocking common key commands and right-clicks for others. The plugin also includes functionality to detect if users have developer tools open on other sites before visiting yours.
This plugin is aimed at website administrators who want to enhance security by limiting access to certain development features for non-admin users. It is particularly useful for developers looking to protect their site's code from being easily inspected or manipulated.
Best for: Website administrators and developers looking to restrict access to developer tools for non-admin users.
What it does well
Where it falls short
Developer Tools Blocker provides a straightforward solution for limiting access to developer tools, but its effectiveness may vary based on site performance.
SwiftNinjaPro's own description of Developer Tools Blocker, lightly tidied.
This plugin blocks non-admin users from using inspect element, while still allowing access those with manage_options permission.
The plugin also blocks some of the common keys(f12, ect.) and optionally can block right-clicks for non-admin users.
Admins are unaffected by the plugin entirely. This plugin is also able to block users who open developer tools on another site, before visiting your site.
Version 3.0 update
This plugin is now fast and accurate, and should work on most browsers.
This plugin can detect the browser console based on lag increased by opening the console. This detection is tough for a browser to prevent or get around.
The detection runs fast, and has some resistance to lag spikes.
Lag detection does mean your site needs to have ok performance, but when testing it, I could play 10 of 10 youtube videos all at once without a false positive.
During my tests, detection was still within the second I open dev tools, and successful if I go to the page with it already open.
I tested this in chrome, firefox, and chromium.
I also tested this on my somewhat slow website with tons of wordpress plugins installed (and the 10 videos at once test) without false positives.
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.