# dash-disable-devtool-plugin **Repository Path**: cnfeffery/dash-disable-devtool-plugin ## Basic Information - **Project Name**: dash-disable-devtool-plugin - **Description**: 同步Github dash-disable-devtool-plugin仓库 - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: https://github.com/CNFeffery/dash-disable-devtool-plugin - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-22 - **Last Updated**: 2025-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dash-disable-devtool-plugin [](https://github.com/CNFeffery/dash-disable-devtool-plugin/blob/main/LICENSE) [](https://pypi.org/project/dash-disable-devtool-plugin/) [](https://github.com/astral-sh/ruff) English | [简体中文](./README-zh_CN.md) A plugin to disable browser developer tools and other page operation permissions for Dash applications using Dash Hooks. ## Installation ```bash pip install dash-disable-devtool-plugin ``` ## Usage ```python from dash import Dash # Import the disable devtool plugin from dash_disable_devtool_plugin import setup_disable_devtool_plugin # Enable the disable devtool plugin for the current app setup_disable_devtool_plugin() app = Dash(__name__) # Rest of your app code... ``` ## Example Run the included example. In this basic example, first of all, the normal ways to open the browser developer tools via shortcut keys will be blocked. Even if the browser developer tools are opened through other means, it will be quickly detected, and trigger the default page content clearing and rewriting. ```bash python example.py ```
