theajack / disable-devtool

Disable web developer tools from the f12 button, right-click and browser menu

Home Page:https://theajack.github.io/disable-devtool/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Hates this apparently.

TechGeekUnited opened this issue · comments

ChatGPT "There are several potential problems with using the disable-devtool library or any other similar method to try and prevent users from accessing the devtools:

False positives: The method may incorrectly detect that the devtools are open when they are not, or fail to detect them when they are open. This could happen if the user's browser or device behaves differently from what the method expects, or if the user has modified their browser or devtools settings.

Browser compatibility: The method may not work in all browsers, or may require specific browser versions or settings to be enabled. This could limit the effectiveness of the method and make it unreliable for some users.

Security risks: The method may introduce security vulnerabilities by relying on obscure or undocumented browser behavior, or by modifying the page's behavior in ways that could be exploited by attackers.

User experience: The method may interfere with the user's experience of the page by blocking or modifying certain features, or by causing unexpected behavior or errors.

Accessibility: The method may not be accessible to users with disabilities or assistive technologies that rely on the devtools or other debugging features.

Overall, it is generally not recommended to rely on such methods to prevent users from accessing the devtools or modifying the page's behavior, as they can be unreliable, insecure, and may have negative effects on the user's experience. Instead, it is usually better to focus on securing the page's functionality and data through other means, such as server-side validation and authentication, encryption, and access controls."

@TechGeekUnited
indeed it is true in some respects