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 3y 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 2w 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

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

1191d 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

1142.0M17](/packages/mollie-magento2)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.5M1](/packages/fastly-magento2)[buckaroo/magento2

Buckaroo Magento 2 extension

32426.0k8](/packages/buckaroo-magento2)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

2610.9k2](/packages/zwernemann-module-withdrawal)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50406.2k23](/packages/dotdigital-dotdigital-magento2-extension)

PHPackages © 2026

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