Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Copy Prevention

1,998 sites Security covered Drupal 8–11
View on drupal.org

This module helps protect your website's content and images from easy copying by disabling text selection, the copy-to-clipboard function, and right-click menus. It can also obscure images from search engines.

Anything you put out there in the Internet (public pages) is available for anyone else to copy and save/re-use. So if you really want your content to be safe and protected - do not put it online.
But if you want you can try to protect your content/images and prevent/disable at least the most simple ways to copy it. In fact, anyone can "view source", check the browser cache for images, use "Print Screen" or "site copy" software, etc. - these things can't be disabled, but they require additional knowledge and skills than just selecting the content and copying it or dragging an image from browser window to the desktop.
This module includes several different technical ways/methods to make copying/stealing information/images from your site harder than it usually is:

  • Disable text selection
  • Disable copy to clipboard
  • Disable right-click context menu on all site content
  • Disable right-click context menu only on images (<img> tag)
  • Place transparent image above all your images - this will protect your real images from being saved using context menu or drag-and-drop to desktop
  • Protect/hide your images from search engine indexes so that your images don't show up in image searches - add "noimageindex" robots tag and disallow image files indexing in robots.txt

Some of these methods might make your site harder to use for less-advanced users and you should carefully consider all the implications of using these techniques. Drupal community is even considering adding dependency on Bad Judgement module - see this issue #1966018: Add bad judgement as a dependency.

Installation

Just download and install as any other Drupal module. Then configure the options at "admin/config/user-interface/copyprevention" - all the methods are disabled by default.
The user permission (admin/people/permissions) "Bypass Copy prevention" allows to not apply these module methods to trusted user roles.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2026
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.0.0 Stable 8–11 Feb 8, 2026