📥 My Awesome Plugin
This plugin helps you automate tasks and improve web performance.
⬇️ Download Plugin ZIP💌 Subscribe to Updates
Simple Anti-Copy free plugin that disables right-clicking and text copying on your website to protect content. The plugin is designed for non-coders, requiring only activation to work, with no configuration needed. It will use JavaScript to block right-click context menus and prevent text selection, ensuring simplicity and compatibility. The plugin is lightweight and includes a basic admin page with instructions.
Simple Anti-Copy free plugin
Installation and Setup Instructions
- Download the Plugin:
- Upload to WordPress:
- Zip the wp-simple-anti-copy folder.
- In your WordPress admin dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the zipped folder and click Install Now.
- Activate the Plugin:
- After installation, click Activate Plugin.
- The plugin will automatically disable right-clicking and text copying on all pages.
- View Instructions (Optional):
- In the WordPress admin dashboard, a new menu item called Anti-Copy will appear for administrators.
- Click it for details on how the plugin works.
Features
- Disables Right-Click: Prevents the context menu from appearing when users right-click.
- Prevents Text Copying: Blocks text selection, copying, and cutting across the website.
- Easy Setup: No configuration required; works immediately after activation.
- Single File: Core functionality is contained in one PHP file, with a JavaScript file generated on activation.
- Admin Instructions: Includes an admin page with usage information.
- Lightweight: Minimal impact on site performance, using simple JavaScript and CSS.
How It Works
- On activation, the plugin creates a JavaScript file (sac-anti-copy.js) in the plugin directory to handle right-click and copy prevention.
- The JavaScript disables the context menu, copy, and cut actions using event listeners.
- Inline CSS in the page header prevents text selection across all browsers.
- The restrictions apply to all front-end pages for all users, including visitors and logged-in users.
Notes
- The plugin creates a JavaScript file (sac-anti-copy.js) in the plugin directory on activation.
- This is a basic protection method. Determined users can bypass it using browser developer tools, disabling JavaScript, or other techniques.
- The plugin does not affect admin dashboard functionality; it only applies to the front-end.
- Compatible with WordPress 5.0 and above.
- For stronger content protection, consider additional measures like server-side restrictions or watermarking.
This plugin is ready to use and provides a simple way to deter casual content copying. Let me know if you need additional features (e.g., excluding specific pages, custom alert messages, or disabling drag-and-drop) or help with setup!