Search Results :

×

Enable Login Restrictions in Drupal Session Management

In this document, we will walk through how the Login restriction feature works in our Session Management module. Login restriction helps you control access to your site by setting rules around where users can log in from. There are two main ways to do this: IP-based restriction, which allows logins only from specific IP addresses or ranges, and country-based restriction, which limits access to users from selected countries.

  • Download the module:
    composer require 'drupal/session_management'
  • Navigate to Extend menu on your Drupal admin console and search for Session Management using the search box.
  • Enable the module by checking the checkbox and click on the Install button.
  • You can configure the module at:
    {BaseURL}/admin/config/people/session-management/session-management
  • Install the module:
    drush en drupal/session_management
  • Clear the cache:
     drush cr
  • You can configure the module at:
    {BaseURL}/admin/config/people/session-management/session-management
  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the Drupal Session Management module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • You can configure the module at:
    {BaseURL}/admin/config/people/session-management/session-management
Note and Contact Us

Note: You will require the Premium Version of the module to configure the User Session History feature.

To help keep your site secure, you can limit who’s allowed to log in based on where they’re connecting from. By allowing only certain IP addresses or ranges, you make sure that only people from trusted locations like your office or known networks can access your site. It’s a simple way to add an extra layer of protection.

Note and Contact Us

Note: If you're not logged in, please log in using the miniOrange credentials used to purchase the license.


Steps:

  • Under the User Login Settings, go to the Login Restriction section.
  • Enable the IP-Based Login Restriction toggle button.
    • Enter the IP addresses or ranges you want to allow access to the site. Users trying to log in from any other IP address will see the error message below.
    • Error message: You can edit your error message according to your requirements.
Drupal Session management - enable Ip based restriction

  • Click on the Save Configuration button.

To strengthen your site's security, you can limit user logins based on geographical location. By allowing access only from selected countries, you reduce the risk of unauthorized access and ensure that only users from trusted regions can log in. It’s an easy way to add another layer of protection to your application.

Steps:

  • Under the User Login Settings, go to the Login Restriction section.
  • Enable the Country Login Restriction toggle button.
    • Select the countries from the dropdown.
    • Under the Default Access Behavior section, select the option for which you want to perform the Restriction.
    • Error message: You can edit your error message according to your requirements.
Drupal Session management - enable country based login

  • Click on the Save Configuration button.

Congratulations! You have successfully configured the Login Restriction feature.

If the configuration was not successful, please contact us at drupalsupport@xecurify.com. Kindly include a screenshot of the error message, and we will help you resolve the issue and guide you through the setup.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support