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).

Login Disable

554 sites Security covered Drupal 11 · not 10
View on drupal.org

This module allows you to restrict access to your Drupal site's login form by requiring a secret key. Even if users know the key, their roles will still be checked to ensure they have permission to bypass the login restriction. This is useful for content freezes during site migrations or upgrades.

Block login to your Drupal site site-wide with controlled bypass.
Useful during maintenance windows, private staging, member freezes,
or pre-launch lockdowns. Two bypass mechanisms keep administrators
in: a per-role permission and an optional URL access key.

Features

  • Master switch – One checkbox blocks all
    logins for non-bypass users.
  • URL access key – Optional query parameter
    appended to /user/login?your-key bypasses the lock,
    without giving anyone permanent access.
  • End-user message – Configurable warning
    shown to blocked users.
  • Force logout – Optional kick-everyone
    switch that clears all existing sessions when the settings are
    saved (super admin and current user are excluded).
  • REST login coverage – The
    user.login.http endpoint returns HTTP 403
    Access key required. when the key is missing, so the
    lock applies to JSON:API clients and decoupled front-ends too.
  • Per-role bypass – The
    Bypass disabled login permission lets specific roles
    log in even when the module is active.
  • Brute force protection – Multiple attempts are blocked by Drupal core flood.

Why use this module?

Drupal core has no built-in way to disable logins temporarily without
putting the whole site in maintenance mode. Login Disable does only
this one job, with predictable behaviour for both the UI login form
and the REST endpoint.

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Dec 2024
Latest release
3 days ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.2.0 Stable 11 Aug 28, 2026
2.1.4 Stable 8–11 Jul 7, 2026
2.1.3 Stable 8–11 Feb 3, 2026
2.1.2 Stable 8–11 Jan 25, 2025
2.1.1 Stable 8–10 Dec 11, 2024