A robust, cross-platform JavaScript solution for protecting your web content from unauthorized copying, designed by Shea's Tech School. This script provides comprehensive protection across all major browsers and devices.
- Blocks right-click context menu
- Prevents keyboard shortcuts (Ctrl+C, Cmd+C, etc.)
- Disables text selection
- Blocks drag-and-drop functionality
- Prevents long-press selection
- Blocks touch-based copying
- Disables zoom and text size adjustment
- Prevents multi-touch selection gestures
- Chrome, Firefox, Safari
- Edge, Opera
- Mobile browsers
- WebKit and Gecko engines
- Console protection in production
- Viewport manipulation prevention
- CSS-based selection blocking
- Event-based protection layers
- Copy the script into your HTML file's
<head>
section:
<head>
<!-- Existing head content -->
<script>
// Copy the entire script here
</script>
</head>
-
Mouse Protection
- Right-click blocking
- Context menu prevention
- Auxiliary button control
-
Keyboard Protection
- Cross-platform shortcut blocking
- Function key control
- Alternative combination prevention
-
Mobile Protection
- Touch event control
- Gesture prevention
- Zoom control
- Selection blocking
-
Copy/Cut/Paste Protection
- Event-based blocking
- Clipboard access control
- Cross-browser implementation
Browser | Version | Support |
---|---|---|
Chrome | 49+ | ✅ |
Firefox | 45+ | ✅ |
Safari | 10+ | ✅ |
Edge | 12+ | ✅ |
Opera | 36+ | ✅ |
Mobile | All | ✅ |
Shea's Tech School © 2025 by Shea Bennett Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International CC BY-NC-SA 4.0
For support and inquiries, please contact Shea's Tech School.
- Comprehensive protection across all major platforms
- Regular updates and maintenance
- Professional implementation
- Cross-browser compatibility
- Mobile-first approach
Made with ❤️ by Shea's Tech School
Protecting Your Digital Content