PHPackages                             magezil/module-site-restrict - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. magezil/module-site-restrict

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

magezil/module-site-restrict
============================

Custom Module to redirect to login or forgot password if customer is not logged in.

1.0.0(3y ago)10OSL-3.0PHPPHP ~8.1.0||~8.2.0

Since May 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/santanaluc94/Magezil_SiteRestrict)[ Packagist](https://packagist.org/packages/magezil/module-site-restrict)[ RSS](/packages/magezil-module-site-restrict/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

Site Restrict
=============

[](#site-restrict)

Description
-----------

[](#description)

Adobe Commerce custom module to redirect non-logged-in customers to the login page. With access to the forgot password and customer registration pages (whether these paths are selected in the admin settings).

---

Installation
------------

[](#installation)

To download the module by composer, execute this code bellow:

```
composer require magezil/module-site-restrict
```

After installing the module it is necessary to execute the following commands:

```
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
bin/magento cache:flush
```

### System Requirements

[](#system-requirements)

> **Magento 2 requires at least:** 2.4.X
>
> **Magento 2 Tested up to:** 2.4.6
>
> **Requires PHP:** 8.1

---

Admin
-----

[](#admin)

### Settings

[](#settings)

To configure the module, go to the Magento admin area and follow the steps below:

> **Stores** &gt; **Configuration** &gt; **Magezil** &gt; **Site Restrict** &gt; **General**

**Enabled Module:** Enable/Disable module site restriction functionality. **Available Paths:** Select the paths that are available to non-logged-in customers.

> Note: The list of controllers should be specified as a comma-separated string, without leading or trailing spaces.

[![ScreenShot](https://github.com/santanaluc94/Magezil_SiteRestrict/raw/master/docs/config.png)](https://github.com/santanaluc94/Magezil_SiteRestrict/raw/master/docs/config.png)

Site
----

[](#site)

### Feature

[](#feature)

The module includes a controller validation observer that runs whenever a controller is loaded. This observer checks if the current controller is in the list of valid controllers defined in the module's configuration. If the controller is not in the list, the observer redirects the user to login page.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff291770b331e879b1abb8621cf2328b28e4d1d9dd693dae052f037deca60665?d=identicon)[santanaluc94](/maintainers/santanaluc94)

---

Top Contributors

[![santanaluc94](https://avatars.githubusercontent.com/u/45948874?v=4)](https://github.com/santanaluc94 "santanaluc94 (15 commits)")[![IgorTSSantana](https://avatars.githubusercontent.com/u/72767296?v=4)](https://github.com/IgorTSSantana "IgorTSSantana (1 commits)")

### Embed Badge

![Health badge](/badges/magezil-module-site-restrict/health.svg)

```
[![Health](https://phpackages.com/badges/magezil-module-site-restrict/health.svg)](https://phpackages.com/packages/magezil-module-site-restrict)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[faonni/module-product-available

Extension allows the store owner to hide the product price and add to cart button from guests or certain customer groups.

3720.0k](/packages/faonni-module-product-available)[pagbank/payment-magento

PagBank - Payment for Magento and Adobe

2128.3k7](/packages/pagbank-payment-magento)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)[hryvinskyi/magento2-invisible-captcha

Magento 2 Google Invisible Captcha (Recaptcha) module

279.4k](/packages/hryvinskyi-magento2-invisible-captcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
