Title: Developer Tools Blocker
Author: SwiftNinjaPro
Published: <strong>February 16, 2019</strong>
Last modified: November 9, 2022

---

Search plugins

![](https://ps.w.org/swiftninjapro-inspect-element-console-blocker/assets/banner-
772x250.png?rev=2814813)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/swiftninjapro-inspect-element-console-blocker/assets/icon-128x128.
png?rev=2814813)

# Developer Tools Blocker

 By [SwiftNinjaPro](https://profiles.wordpress.org/swiftninjapro/)

[Download](https://downloads.wordpress.org/plugin/swiftninjapro-inspect-element-console-blocker.zip)

 * [Details](https://wordpress.org/plugins/swiftninjapro-inspect-element-console-blocker/#description)
 * [Reviews](https://wordpress.org/plugins/swiftninjapro-inspect-element-console-blocker/#reviews)
 *  [Installation](https://wordpress.org/plugins/swiftninjapro-inspect-element-console-blocker/#installation)
 * [Development](https://wordpress.org/plugins/swiftninjapro-inspect-element-console-blocker/#developers)

 [Support](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/)

## Description

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.

## Screenshots

[⌊Blocking unauthorized users from Inspect Element⌉⌊Blocking unauthorized users 
from Inspect Element⌉[

Blocking unauthorized users from Inspect Element

## Installation

 1. Upload plugin to the /wp-content/plugins
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. Go to this plugins Settings and Check “Plugin Enabled” To Enable the plugin
 4. Edit any other settings to your preference
 5. Click Save and Enjoy

## FAQ

### Does this block users if they already have developer tools open?

yes, developer tools is detected when the user first loads the page. If developer
tools was opened on another site first, its detected by the plugin.
 no matter when
or where developer tools was opened, it should get blocked.

### Can admins still use Inspect Element?

yes, this plugin detects if a user is has “manage_options” permission, and only 
blocks those who do not have permission.

### Does this plugin block the f12 key?

common keys including f12 get blocked.

### Does this plugin block right click?

There is a setting you can toggle on or off to decide if you want to block right
click.

### Can Inspect Element be used on wp-login?

the plugin attempts to block non-admin users from inspect element, including on 
wp-login.
 If you would like to better protect wp-login, there is another plugin
by SwiftNinjaPro that will only allow specific IP’s to assess wp-login https://wordpress.
org/plugins/swiftninjapro-wp-login-whitelist-ip/

### Is there still a way around this plugins block?

unfortunately, there is always a way for someone to find a work-around to any code.
Opening the console is done client side, so it can only be detected client side.
This plugin does make it much harder for non-admins to inspect element though.

### What do I do if I can’t access the login screen?

This could be because of the browser your using. Some browsers may respond differently.

If you cant access your site, you can do 1 of 2 things to disable this plugin:
 
1. Contact your host, and ask them to disable the plugin manually 2. Use FTP, Filezilla,
or cpanel, then (click “File Manager”, if using cpanel) navigate to public_html/
wp-content/plugins, then find the folder “swiftninjapro-inspect-element-console-
blocker” and rename it to “swiftninjapro-inspect-element-console-blocker-off” to
disable the plugin.

## Reviews

![](https://secure.gravatar.com/avatar/28b76e5cf54e08aa5d61d53da3920723b5369ee40884dc48370caf3b53930892?
s=60&d=retro&r=g)

### 󠀁[if you want to ruin your SEO, then use it!](https://wordpress.org/support/topic/if-you-want-to-ruin-your-seo-then-use-it/)󠁿

 [themasterclass](https://profiles.wordpress.org/themasterclass/) September 1, 2023

After a few months, I regularly got an alert from my Google search console that 
the pages were not crawlable.I checked everything but the problem persists…until
deactivated this amazing plugin!

![](https://secure.gravatar.com/avatar/e7ec30d15d84df2a8717394fe0fb7db84fb8e8c8ef7c5585d7e2ee6d69d075ae?
s=60&d=retro&r=g)

### 󠀁[Muy buen Plugin](https://wordpress.org/support/topic/muy-buen-plugin-234/)󠁿

 [rottwail](https://profiles.wordpress.org/rottwail/) May 21, 2022

Hola, el plugin funciona de maravilla, las únicas dudas que tengo son: 1. ¿Por qué
el plugin no me da las métricas de Page Speed en versión Escritorio? 2. ¿El Plugin
deja entrar a todos los motores de búsqueda para no perjudicar al SEO? Si el posicionamiento
web, funciona de correctamente, entonces el plugin se merece un 10 de puntuación.
Con este plugin dificualtas varias cosas a personas con malas intenciones. Espero
que el desarrollador Swift pueda responder a mis dudas y también sacar una actualización
con mejoras, un cordial saludo y muchísimas gracias por trabajar en un plugin como
este, saludos.

![](https://secure.gravatar.com/avatar/4bc53620e3a4aa3ebf3bec55eed30531d71c79394e900b22115f2cb43c73c584?
s=60&d=retro&r=g)

### 󠀁[Just one word A M A Z I N G !!!!](https://wordpress.org/support/topic/just-one-word-a-m-a-z-i-n-g/)󠁿

 [rolarseo](https://profiles.wordpress.org/rolarseo/) January 4, 2022

Just one word A M A Z I N G !!!! This plugin works perfectly! I love it! very simple
and effective! stop those who try to hack your website! it’s fantastic!

![](https://secure.gravatar.com/avatar/3cce83586a75d23ef6f510b78433f39325acab48affd7547fd72fdc0f43cdbe1?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-2206/)󠁿

 [Tilakpranesh](https://profiles.wordpress.org/tpranesh/) December 7, 2021

This plugin just does what is promises. After disabling the right click for my website,
the only thing to fix is developer tools. And this simply fixes the issue by redirecting
to a 404 page and thus your wp-content exposure is limited to only basic items.

![](https://secure.gravatar.com/avatar/267af5bc79af3d584fb568893f0dd9d6a6fe27ecf39959eef4d6cd3ae91731da?
s=60&d=retro&r=g)

### 󠀁[This plugin is really good, but not working for IOS mobile devices.](https://wordpress.org/support/topic/this-plugin-is-really-good-but-not-working-for-ios-mobile-devices/)󠁿

 [Mahinur Khan](https://profiles.wordpress.org/mdmahinurkhan/) September 27, 2021

This plugin is really good, but not working for IOS mobile devices… Because it’s
automatically redirecting to 404 page from IOS mobile devices. Please fix for IOS
mobile user. I’m deactivating the plugin now because of not working in my iPhone.
It’s redirecting to 404 page automatically. But it’s fine on android devices.

![](https://secure.gravatar.com/avatar/d1735e46c6be6af48149d1cb2d2371ff466532540c2c94abd489034a3c26851f?
s=60&d=retro&r=g)

### 󠀁[Amazing until no more](https://wordpress.org/support/topic/amazing-until-no-more/)󠁿

 [DesignsnMore](https://profiles.wordpress.org/allmybanners/) August 19, 2021 2 
replies

08/2021 – Update 3.0 resolved this issue, amazing plug in Original Review: This 
is amazing tool, for no expert users works great, the thing is I was able to break
this “protection” in a very easy way: 1.- Open developer tools in firefox or chrome(
of course the plug in re direct the user to the 404 error page), perfect! until…
2.- Press the “back” button in the internet browser, then it go back to the previous
page with all developer tools open (developer tools do not close en back) so then
the plug in do not redirect again to the 404 page, it stay in the original page 
with all the code and developer tools available, I hope you guys can correct this
because is an amazing tool. thank you

 [ Read all 14 reviews ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/)

## Contributors & Developers

“Developer Tools Blocker” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ SwiftNinjaPro ](https://profiles.wordpress.org/swiftninjapro/)

[Translate “Developer Tools Blocker” into your language.](https://translate.wordpress.org/projects/wp-plugins/swiftninjapro-inspect-element-console-blocker)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/swiftninjapro-inspect-element-console-blocker/),
check out the [SVN repository](https://plugins.svn.wordpress.org/swiftninjapro-inspect-element-console-blocker/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/swiftninjapro-inspect-element-console-blocker/)
by [RSS](https://plugins.trac.wordpress.org/log/swiftninjapro-inspect-element-console-blocker/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.2.1

Added default option to disable plugin on 404 pages

#### 3.1

Added option to disable on mobile browsers

#### 3.0

Fixed many bugs
 Made a new detection method thats fast and accurate Now works in
firefox

#### 2.0.1

Added options to disable console blocker on admin and login pages (this could fix
some issues)

#### 2.0

Scripts rebuilt
 Now uses devtools-detect from github

#### 1.8

Added option to randomize the plugins javascript variable and function names

#### 1.7

Added option to allow Search Engines for Sitemaps

#### 1.6

Improved accuracy of devtools open detection

#### 1.5.1

Improved how 404 page looks

#### 1.5

Fixed detection for Microsoft Edge

#### 1.4.6

changed display name

#### 1.4

improved detection of opened console

#### 1.3

added setting to allow or deny right clicks

#### 1.2

Small change to how the plugin keeps people out of the direct url of it’s own files

includes attempt to send them to 404 page tries to make direct access look like 
a 404 error to trick hackers

#### 1.1.2

Bug Fix
 fixed false positive that blocked Google bots now the plugin does not send
bots, like Google PageSpeed Insights, to the 404 page

#### 1.1.1

Bug Fix
 fixed console opening detection

#### 1.1

Improved detection of wp-login
 404 screen now displays “404 error Page Not Found”

#### 1.0

First Version

## Meta

 *  Version **3.2.1**
 *  Last updated **4 years ago**
 *  Active installations **400+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **5.8.13**
 *  PHP version ** 5.2.4 or higher **
 * Tags
 * [block](https://wordpress.org/plugins/tags/block/)[browser](https://wordpress.org/plugins/tags/browser/)
   [console](https://wordpress.org/plugins/tags/console/)[element](https://wordpress.org/plugins/tags/element/)
   [inspect](https://wordpress.org/plugins/tags/inspect/)
 *  [Advanced View](https://wordpress.org/plugins/swiftninjapro-inspect-element-console-blocker/advanced/)

## Ratings

 4.2 out of 5 stars.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/reviews/)

## Contributors

 *   [ SwiftNinjaPro ](https://profiles.wordpress.org/swiftninjapro/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/swiftninjapro-inspect-element-console-blocker/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.swiftninjapro.com)