Skip to content

javascript dev tools blocker/source code protector

Notifications You must be signed in to change notification settings

Rednexie/no-console.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

no-console.js

Javascript dev-tools blocker and page source protector.

https://cdn.jsdelivr.net/gh/Rednexie/rednexie.github.io@main/cdn/noconsole.js

Functionality

No-Console.js is used for blocking people from accessing:

  • Developer Tools, [ F12 ]
  • Javascript Console, [ CTRL + SHIFT + J ]
  • Inspect Elements, [ CTRL + SHIFT + I ]
  • View Page Source, [ CTRL + U ]
  • Save Page Source, [ CTRL+ S ]
  • Context Menu; [ Right Click]
  • Firefox Inspect Element [ CTRL + SHIFT + C ]
  • Firefox Javascript Console [ CTRL + SHIFT + K ]

as well as logging the user ip and the event description with discord webhook API.

no-console.js has an option to auto disable:

  • Autocorrect functionality in Javascript Console.
  • Document Design Mode
  • Javascript Console Output.

Usage

The constant WebhookURL is your discord webhook api url.

Don't forget to add your webhook url, or change the constant log to false. This disables webhook api log feature.

If you don't want to block the actions, only log them, change the constant block to false. This disables the blocking feauture.

If you want to let your clients use context menu, change the constant rightclick to false. This enables context menu back.

Possible Updates:

  • Detection of open dev tools (document unfocus).

If you don't want to disable autocorrect and design mode, change the constant disable to false.

The constant delay indicates the delay between clearing the console. It is defaulted to 100 milliseconds.