Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

readonlymode

4,664 sites Security covered
View on drupal.org

What is Read Only Mode?

Read Only Mode provides an alternate to the built in Maintenance Mode in Drupal. Instead of displaying a static text file to users while the site is in maintenance mode, Read Only Mode will allow access (reading) of new content while preventing the addition of new content (posting / submitting forms / etc).

This allows the site to remain functional while maintenance is performed. This module also provides messaging to users and administrators to indicate that the site is in maintenance mode.

A quick set of features

  • Put the site in maintenance mode without taking your site offline
  • Easy to configure whitelist of forms that should remain available
  • Easy to configure custom warning messages
  • Administrative permissions that override Read Only Mode access restrictions

Who Is this for?

This module is intended for site administrators and developers. The module provides a great way to lock down or freeze a production server so that maintenance or large deployments can occur without taking the site offline. In a typical example, Read Only Mode is activated on the production server, the database is copied to a development server where work is done, and then the database is pushed back to the production server and Read Only Mode disabled.

Usage and configuration

The module can be configured in the Site Maintenance settings page alongside the built in maintenance mode settings. Simply choose to enable the mode and your site is now locked down to content additions. Read Only Mode and Maintenance mode are separate and you do not need to enable Maintenance Mode to enable Read Only Mode.

Further configuration is possible to provide custom warnings and errors to users and to whitelist certain forms that your site deems 'safe' during Read Only Mode. For example, a form may submit content through email or by accessing a callback on a web service and no data is stored in the Drupal database. It may make sense to allow site users to access these forms even when the site is in Read Only Mode.

In addition to a whitelist, the site also provides a permission that overrides access restrictions and can be given to site administrators.

Drush Support

Use usual drupal cget/cset commands to update configuration.

2.0.x branch

It is rewrite using event subscriber and validation constrains.

D7 version is no longer maintained.

Activity

Total releases
1
First release
Dec 2025
Latest release
4 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
8.x-1.4 Stable Dec 3, 2025