A comprehensive content protection plugin for WordPress, designed to prevent content theft, screenshots, screen recording, and unauthorized use.
Developed by: Mohammad Babaei - adschi.com
- Improved Screenshot Blocking: Enhanced protection against OS-level tools like the Windows Snipping Tool.
- Critical Bug Fix: Resolved an issue where settings could not be disabled once enabled.
- Code Modernization: The frontend script has been converted to a modern JavaScript module.
- Feature Removal: The full-page watermark feature has been removed to simplify the plugin.
This plugin provides a robust set of features to protect your website's content:
- Disable Right-Click: Prevents users from opening the context menu.
- Block Developer Tools: Blocks access to browser developer tools (F12, Ctrl+Shift+I, etc.).
- Disable Copying: Disables keyboard shortcuts (like Ctrl+C) and other methods of copying.
- Block Text Selection: Prevents users from selecting text on your pages.
- Disable Image Dragging: Makes images undraggable.
- Disable Video Download: Removes download options from video players.
- Disable Screenshot Shortcuts: Blocks PrintScreen and macOS screenshot shortcuts (Cmd+Shift+3/4).
- Mobile Screenshot Block: Attempts to prevent screenshots on mobile devices using multiple techniques.
- Video Screen Recording Block: Detects screen recording and turns videos black to protect content.
- Enhanced Screen Protection: Adds protective CSS layers and detection mechanisms.
- Video Watermark: Apply a dynamic, animated watermark over your videos.
- IP Whitelist: Exclude specific IP addresses from all protections.
- Page Exclusions: Exclude specific posts or pages by ID.
- Custom Alert Messages: Customize messages shown to users when they attempt restricted actions.
- Download the
block-content-protectionfolder as a.zipfile. - Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add New.
- Click Upload Plugin and select the downloaded
.zipfile. - After installation, click Activate.
- Configure the settings by navigating to Settings > Content Protection.
- Enable the protection features you need and customize alert messages.
- Save your settings.
Please understand these important points:
-
No Protection is 100% Foolproof:
- Users can take photos of the screen with another device
- Advanced users can use external screen capture tools
- Some browsers may not support all protection methods
-
Mobile Screenshot Protection:
- Works better on Android devices
- iOS has limited support for screenshot blocking
- Some Android versions may bypass these restrictions
-
Video Recording Protection:
- Detects common recording methods
- Cannot prevent all hardware-based recording
- May affect user experience
-
Best Practices:
- Use multiple protection layers together
- Don't rely solely on technical measures
- Consider watermarking sensitive content
- Use proper copyright notices
For maximum protection, enable:
- ✅ Disable Right Click
- ✅ Disable Developer Tools
- ✅ Disable Copy
- ✅ Disable Text Selection
- ✅ Disable Screenshot Shortcuts
- ✅ Mobile Screenshot Block
- ✅ Video Screen Recording Block
- ✅ Enhanced Screen Protection
- Event-Based Blocking: Intercepts keyboard shortcuts (PrintScreen) and window focus loss (
blurevent) to trigger a blackout effect, countering OS-level tools. - Mobile Detection: Monitors touch gestures and visibility changes.
- Blackout Effect: Applies a full-screen black overlay to obscure content when screen capture is suspected.
- Alert System: Warns users that screenshots are disabled.
- Recording Detection: Monitors for screen recording APIs (
getDisplayMedia). - Black Screen: Applies a filter to turn videos black when recording is detected.
- Continuous Monitoring: Checks for recording throughout playback.
- Multiple Layers: Uses CSS filters and JavaScript detection.
block-content-protection/
├── block-content-protection.php (Main plugin file)
├── css/
│ └── protect.css (Protection styles)
├── js/
│ └── protect.js (Protection scripts)
└── languages/
└── block-content-protection.pot
- WordPress: 5.0 or higher
- PHP: 7.0 or higher
- Browsers: Chrome, Firefox, Safari, Edge (latest versions)
- Mobile: Android 5.0+, iOS 13+ (limited support)
- This can happen due to browser privacy settings
- Try disabling "Video Screen Recording Block" temporarily
- Check if you're on the whitelist
- iOS has very limited screenshot blocking capabilities
- Some Android devices bypass these restrictions
- Consider adding visible watermarks as additional protection
- Disable "Enhanced Screen Protection" if site feels slow
- The plugin uses real-time monitoring which may impact performance
- Consider excluding high-traffic pages
For support, bug reports, or feature requests:
- Visit: adschi.com
- Version: 1.6.4
- Last Updated: 2025
This plugin is licensed under the MIT License. See LICENSE file for details.
Copyright (c) 2025 Mohammad Babaei
یک پلاگین جامع برای محافظت از محتوای وبسایتهای وردپرسی، طراحیشده برای جلوگیری از سرقت محتوا، اسکرینشات، ضبط صفحه و استفاده غیرمجاز.
توسعهدهنده: محمد بابایی - adschi.com
- بهبود مسدودسازی اسکرینشات: محافظت پیشرفته در برابر ابزارهای سیستمی مانند Snipping Tool ویندوز.
- رفع باگ حیاتی: حل مشکلی که در آن تنظیمات پس از فعالسازی، غیرفعال نمیشدند.
- مدرنسازی کد: اسکریپت فرانتاند به یک ماژول جاوااسکریپت مدرن تبدیل شده است.
- حذف ویژگی: قابلیت واترمارک تمام صفحه برای سادهسازی افزونه حذف شده است.
این پلاگین مجموعهای از قابلیتهای قدرتمند را برای حفاظت از محتوای وبسایت شما فراهم میکند:
- غیرفعال کردن راست کلیک: جلوگیری از باز شدن منوی راست کلیک
- مسدود کردن ابزارهای توسعهدهنده: مسدود کردن دسترسی به ابزارهای توسعهدهنده مرورگر
- جلوگیری از کپی کردن: غیرفعال کردن کلیدهای میانبر کپی (مانند Ctrl+C)
- جلوگیری از انتخاب متن: غیرفعال کردن قابلیت انتخاب متن
- غیرفعال کردن کشیدن تصویر: جلوگیری از کشیدن تصاویر
- غیرفعال کردن دانلود ویدئو: حذف گزینه دانلود از پخشکنندههای ویدئو
- مسدود کردن کلیدهای اسکرینشات: مسدود کردن PrintScreen و میانبرهای اسکرینشات مک
- مسدود کردن اسکرینشات موبایل: تلاش برای جلوگیری از اسکرینشات با روشهای متعدد
- محافظت ویدئو از ضبط صفحه: تشخیص ضبط صفحه و سیاه کردن ویدئوها
- محافظت پیشرفته صفحه: افزودن لایههای محافظ CSS و مکانیزمهای تشخیص
- واترمارک ویدئو: اعمال یک واترمارک متحرک و داینامیک بر روی ویدئوهای شما.
- لیست سفید IP: حذف آدرسهای IP خاص از تمام محافظتها
- حذف صفحات: حذف پستها یا صفحات خاص با شناسه
- پیامهای سفارشی: شخصیسازی پیامهای نمایش داده شده به کاربران
۱. پوشه block-content-protection را به صورت فایل .zip دانلود کنید
۲. وارد پنل مدیریت وردپرس خود شوید
۳. به بخش افزونهها > افزودن بروید
۴. روی بارگذاری افزونه کلیک کرده و فایل .zip را انتخاب کنید
۵. پس از نصب، روی فعال کردن کلیک کنید
۶. به بخش تنظیمات > Content Protection بروید
۷. قابلیتهای مورد نظر را فعال کرده و پیامهای هشدار را سفارشی کنید
۸. تنظیمات را ذخیره کنید
لطفاً این نکات مهم را درک کنید:
-
هیچ محافظتی ۱۰۰٪ قطعی نیست:
- کاربران میتوانند با دستگاه دیگری از صفحه عکس بگیرند
- کاربران پیشرفته میتوانند از ابزارهای خارجی استفاده کنند
- برخی مرورگرها ممکن است از همه روشهای محافظتی پشتیبانی نکنند
-
محافظت اسکرینشات موبایل:
- در دستگاههای اندروید بهتر کار میکند
- iOS پشتیبانی محدودی دارد
- برخی نسخههای اندروید ممکن است این محدودیتها را دور بزنند
-
محافظت ضبط ویدئو:
- روشهای رایج ضبط را تشخیص میدهد
- نمیتواند از تمام روشهای سختافزاری جلوگیری کند
- ممکن است بر تجربه کاربری تأثیر بگذارد
-
بهترین روشها:
- از چند لایه محافظتی با هم استفاده کنید
- فقط به اقدامات فنی تکیه نکنید
- واترمارک روی محتوای حساس اضافه کنید
- از اعلانهای کپیرایت مناسب استفاده کنید
برای حداکثر محافظت، فعال کنید:
- ✅ غیرفعال کردن راست کلیک
- ✅ غیرفعال کردن ابزارهای توسعهدهنده
- ✅ غیرفعال کردن کپی
- ✅ غیرفعال کردن انتخاب متن
- ✅ غیرفعال کردن میانبرهای اسکرینشات
- ✅ مسدود کردن اسکرینشات موبایل
- ✅ محافظت ویدئو از ضبط صفحه
- ✅ محافظت پیشرفته صفحه
- مسدودسازی مبتنی بر رویداد: با رهگیری میانبرهای صفحهکلید و از دست دادن فوکوس پنجره، یک افکت سیاه را برای مقابله با ابزارهای سیستمی فعال میکند.
- تشخیص موبایل: نظارت بر حرکات لمسی و تغییرات دید
- افکت سیاه: اعمال یک پوشش سیاه تمامصفحه برای مخفی کردن محتوا هنگام شک به ضبط صفحه
- سیستم هشدار: هشدار به کاربران که اسکرینشات غیرفعال است
- تشخیص ضبط: نظارت بر APIهای ضبط صفحه (
getDisplayMedia) - صفحه سیاه: اعمال فیلتر برای سیاه کردن ویدئوها هنگام تشخیص ضبط
- نظارت مداوم: بررسی ضبط در طول پخش
- لایههای متعدد: استفاده از فیلترهای CSS و تشخیص JavaScript
برای پشتیبانی، گزارش باگ یا درخواست ویژگی:
- وبسایت: adschi.com
- نسخه: 1.6.4
- آخرین بهروزرسانی: ۲۰۲۵
این پلاگین تحت مجوز MIT منتشر شده است.
Copyright (c) 2025 Mohammad Babaei