PHPackages                             agencyleroy/web-security - 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. [Security](/categories/security)
4. /
5. agencyleroy/web-security

ActiveCraft-plugin[Security](/categories/security)

agencyleroy/web-security
========================

1.0.8(6y ago)06MITPHP

Since Sep 5Pushed 6y ago6 watchersCompare

[ Source](https://github.com/agencyleroy/web-security)[ Packagist](https://packagist.org/packages/agencyleroy/web-security)[ RSS](/packages/agencyleroy-web-security/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (9)DependenciesVersions (8)Used By (0)

Web Security plugin for Craft CMS 3.x
=====================================

[](#web-security-plugin-for-craft-cms-3x)

Allows you to set [HTTP Strict Transport Security](https://infosec.mozilla.org/guidelines/web_security#http-strict-transport-security) and [Content Security Policy](https://infosec.mozilla.org/guidelines/web_security#content-security-policy) headers, and configure their values.

This plugin automatically adds a `nonce` attribute to inline styles and scripts added with `registerJs` and `registerCss` and adds a `{{ nonce() }}` twig function.

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

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~11 days

Total

7

Last Release

2369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a0f177ab0ac1a438506078d7916ebec391b4193c0b822489b64e15f8872484c?d=identicon)[agencyleroy](/maintainers/agencyleroy)

---

Top Contributors

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

---

Tags

securitycmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/agencyleroy-web-security/health.svg)

```
[![Health](https://phpackages.com/badges/agencyleroy-web-security/health.svg)](https://phpackages.com/packages/agencyleroy-web-security)
```

###  Alternatives

[craftpulse/craft-password-policy

Password Policy plugin

2826.0k1](/packages/craftpulse-craft-password-policy)[enupal/backup

Fully integrated Backup solution for Craft CMS

1612.5k1](/packages/enupal-backup)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)[born05/craft-csp

Content Security Policy (or CSP) generator using nonces.

1110.2k](/packages/born05-craft-csp)[supercool/buttonbox

A collection of utility field types.

8953.2k1](/packages/supercool-buttonbox)

PHPackages © 2026

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