A powerful React package for protecting your web applications from unwanted developer tools access and cursor-based interactions.
- 🛡️ Block Developer Tools access
- 🖱️ Cursor protection
- 📸 Block screenshot
- ⚡ Lightweight and easy to use
- 🔳 Github Star Button Count
- 🔒 Multiple protection layers
npm install react-mower
import 'react-toastify/dist/ReactToastify.css';
import { DevToolsBlocker } from 'react-mower';
<DevToolsBlocker>
<App />
</DevToolsBlocker>
);
Cursor Protection Only
import { CursorProtect } from 'react-mower';
function App() {
return (
<CursorProtect message='❌ Screen Blocked'>
<YourApp />
</CursorProtect>
);
}
message
With the message attribute, you can give your own arbitrary name when the screen block is on
Tablets | Import | Props |
---|---|---|
Cursor Protect | <CursorProtect /> |
{message} |
Github Star Button Count | <GitHubStarCount /> |
{githubStar}, username/repo |
Dev Tools Blocker | <DevToolsBlocker /> |
soon |
Prevents access to browser developer tools through:
F12 key blocking Ctrl+Shift+I blocking Right-click context menu blocking DevTools window size detection
Blocks common DevTools shortcuts Prevents right-click context menu Detects DevTools through window size changes Shows warning toast messages
Monitors mouse position Blocks specific keyboard shortcuts Shows full-screen protection overlay Prevents unauthorized interactions
Chrome (latest) Firefox (latest) Safari (latest) Edge (latest) Opera (latest)
If you have any questions or need help integrating the package, please open an issue in the GitHub repository.