Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Custom Login Url

Security covered Under active development 854 sites

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

Drupal 9–11

Ask your assistant about Custom Login Url

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
May 2023
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 9–11 Feb 11, 2026
2.0.0-rc1 Pre-release 9–10 May 17, 2023
2.0.0 Stable 9–10 May 17, 2023