An open API service indexing awesome lists of open source software.

https://github.com/abhishek6262/disable-inspect

Disable web inspector for the website
https://github.com/abhishek6262/disable-inspect

browser inspect inspector javascript

Last synced: 6 months ago
JSON representation

Disable web inspector for the website

Awesome Lists containing this project

README

          

# Disable Inspect

The package disables the inspect element feature of the browser by disabling right-click and shortcut keys which can open the elements inspector for the website.

## Installation

The package can be utilized in your preferred way. You can either use the direct link of the file through the CDN or install it using the **npm registry**.

### Installation using the CDN

To use the package through the CDN link simply copy and paste the code below in the footer section of your HTML file.

```

disableInspect();
```

### Installation using the NPM Registry

To install the package from the npm registry, copy and paste the command below in the terminal.

```
npm i disable-inspect
```

Next, import the method `disableInspect` from the package and call it in the file you want to use it.

```
import { disableInspect } from "disable-inspect";

disableInspect();
```

## Credits

- [Abhishek Prakash](https://github.com/abhishek6262)

## Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities. I will appreciate that a lot. Also please add your name to the credits.

Kindly [follow me on twitter](https://twitter.com/_the_shade)!

## Support

Moreover, To keep this and my other open source projects ongoing You can also support me on Patreon by clicking on the button below.

[](https://www.patreon.com/bePatron?u=5563585)

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.