Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Custom Login Url

852 sites Security covered
View on drupal.org

This module allows you to change the URL of the administration login form from the default `/user` to a custom path. This can help improve security by making it harder for bots to find the login page. After enabling the module, you can set your custom login URL in `settings.php`.

CONTENTS OF THIS FILE
---------------------

* Introduction
* Requirements
* Installation
* Configuration
* Maintainers

INTRODUCTION
------------
The Custom Login Url allows you to redefine the url of the administration login
form.

By default, the url of the administration login form is `/user`.
For security reasons, you might want to redefine this url to another one.
This can avoid robots connection trials.

REQUIREMENTS
------------

This module requires the user module:
- drupal/user

INSTALLATION
------------

Install the Custom Login URL module as you would normally install a contributed
Drupal module. Visit https://www.drupal.org/node/1897420 for further
information.

CONFIGURATION
-------------

After enabling the Custom Login Url module, you can add your own connexion
base url into your settings.php as so :
```
/**
* Redefine the login base url.
*/
$settings['custom_login_pattern'] = 'my_login_url/';
```

Now you can access the login form here : 'www.my-domain.com/my_login_url/login'
The default url /user should now send a 404 response.

MAINTAINERS
-----------

* Thomas Sécher - https://www.drupal.org/u/tsecher

Supporting organization:

* Lycanthrop - https://www.drupal.org/lycanthrop

Activity

Total releases
1
First release
Feb 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.1.0 Stable Feb 11, 2026