PHPackages                             jorisnoo/statamic-password-protect - 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. jorisnoo/statamic-password-protect

ActiveStatamic-addon[Authentication &amp; Authorization](/categories/authentication)

jorisnoo/statamic-password-protect
==================================

Site-wide password protection for anonymous visitors

0.1.0(3mo ago)068↓87.9%MITPHPPHP ^8.3

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/jorisnoo/statamic-password-protect)[ Packagist](https://packagist.org/packages/jorisnoo/statamic-password-protect)[ RSS](/packages/jorisnoo-statamic-password-protect/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Statamic Password Protect
=========================

[](#statamic-password-protect)

Site-wide password protection for Statamic 6. Anonymous visitors must enter a password to view the site. Logged-in CP users always bypass the wall.

Settings are managed through the addon settings page in the Statamic control panel.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Statamic 6
- Laravel 12

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

[](#installation)

```
composer require jorisnoo/statamic-password-protect
```

Configuration
-------------

[](#configuration)

1. Go to **CP &gt; Addons &gt; Password Protect &gt; Settings**
2. Toggle **Enabled** on
3. Set a **Password**
4. Optionally set a **Title** for the password page (defaults to your site name)
5. Save

That's it. Anonymous visitors will now see a password prompt. Authenticated CP users are never affected.

How It Works
------------

[](#how-it-works)

A middleware on the `web` group intercepts every frontend request. It checks (in order):

1. Is password protection enabled with a password set? If not, pass through.
2. Is this a CP route? Pass through.
3. Is this the password form itself? Pass through.
4. Is the visitor logged into Statamic? Pass through.
5. Does the session have a valid authorization flag? Pass through.
6. Otherwise, redirect to the password form.

After entering the correct password, visitors are redirected back to the page they originally requested. The session flag persists for the duration of the browser session.

Static Caching
--------------

[](#static-caching)

When password protection is enabled, the addon automatically disables Statamic's static caching strategy. This ensures every request goes through the middleware and anonymous visitors cannot access cached pages.

When you disable password protection, static caching resumes normally.

**SSG (Static Site Generator):** This addon is not compatible with `statamic/ssg`. If you're generating a fully static site, password protection must be handled at the web server level (e.g., HTTP Basic Auth via nginx/Apache).

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

93d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0440b6ac994d5566a2ef5886fbac104a73f8458e70dbd20085e241ab0f647e0d?d=identicon)[jorgenoo](/maintainers/jorgenoo)

---

Top Contributors

[![jorisnoo](https://avatars.githubusercontent.com/u/5810772?v=4)](https://github.com/jorisnoo "jorisnoo (4 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/jorisnoo-statamic-password-protect/health.svg)

```
[![Health](https://phpackages.com/badges/jorisnoo-statamic-password-protect/health.svg)](https://phpackages.com/packages/jorisnoo-statamic-password-protect)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[statamic/seo-pro

68488.6k](/packages/statamic-seo-pro)[statamic/statamic

Statamic

829176.7k](/packages/statamic-statamic)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

126688.5k15](/packages/statamic-eloquent-driver)[rias/statamic-redirect

29322.9k](/packages/rias-statamic-redirect)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3310.1k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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