Disable Right Click and Text Selection for WordPress

Disable Right Click and Text Selection deters casual copying by disabling the context menu (right‑click) and text selection. It’s lightweight, cache‑friendly, and flexible with per‑post/per‑type and role‑based controls.

Core Features

  • Disable right‑click globally or per post
  • Disable text selection globally or per post
  • Role‑based access control (includes Guest); administrators excluded by default
  • Post type filters and per‑post overrides
  • Customizable warning messages per post
  • Protection status column in post/page lists
  • Quick Edit and Bulk Edit support
  • Complete multilingual support (5 translations included)

Security

  • Nonces, sanitization, and XSS‑safe output
  • Secured AJAX endpoints
  • Role‑based restrictions and per‑post settings

Performance

  • Conditional asset loading (only when protection is active)
  • Cache compatibility
  • Minimal database queries
  • No external dependencies
  • Optimized, modular code structure

Project Details

Client Public
Technologies PHP, JS, CSS
File Size 30.22 KB
Format application/zip

Download Information

Download

Leave a Comment