WP Manifestindependent plugin directory
manifest / security / wpmu-security

WPMU Security

Adds basic security features to WordPress

by Sebastian Thulin · github.com/helsingborg-stad/wpmu-security

1stars
3forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/helsingborg-stad/wpmu-security/archive/refs/heads/main.zip

Readme

🔐 WordPress Security Hardening Plugin

A lightweight WordPress plugin focused on modern security hardening best practices without unnecessary bloat.

🚀 Features

  • ✅ Generic login error messages (prevent user enumeration)
  • ✅ Generic password reset responses
  • ✅ HTTP Strict Transport Security (HSTS)
  • ✅ CORS configuration
  • ✅ Subresource Integrity (SRI) for scripts and styles
  • ✅ XML-RPC disabling
  • ✅ Comment sanitization (anti-XSS)
  • ✅ Content Security Policy (CSP)
  • Custom port number support (development environments, custom setups)
  • ✅ Api Rate Limiter

⚙️ Configuration

This plugin is designed to be hassle free, however if you like to add domains that are not detected in the content security policy. Please use the following filter:

add_filter(
    'WpSecurity/Csp',
    function ($domains) {
        if(!isset($domains['connect-src'])) {
            $domains['connect-src'] = [];
        }
        $domains['connect-src'][] = 'https://*.domain.com';
        $domains['connect-src'][] = 'https://*.domain.net';
        return $domains;
    }
);

🔧 Custom Port Support

The plugin fully supports WordPress installations running on custom ports (e.g., localhost:8080 for development). All security features work correctly with custom ports:

  • ✅ CSP headers include port numbers in domain policies
  • ✅ CORS headers respect the full URL with port
  • ✅ SRI verification works with local assets on custom ports
  • ✅ All URL parsing and domain matching handles ports correctly

No additional configuration is needed - the plugin automatically detects and handles custom ports from your WordPress site URL.

For detailed information about custom port support, see CUSTOM_PORTS.md.

Read the full README on GitHub →

Releases

TagPublished
1.9.2 Sep 3, 2026
1.9.1 Mar 25, 2026
1.9.0 Feb 23, 2026
1.8.7 Jan 27, 2026
1.8.6 Dec 16, 2025
1.8.5 Dec 4, 2025
1.8.4 Aug 26, 2025
1.8.3 Aug 15, 2025
1.8.2 Jul 10, 2025
1.8.1 Jul 8, 2025
1.8.0 Jul 4, 2025
1.7.0 Jul 4, 2025
1.6.11 Jul 4, 2025
1.6.10 Jun 18, 2025
1.6.8 Jun 17, 2025
1.6.6 Jun 17, 2025
1.6.5 Jun 16, 2025
1.6.3 Jun 16, 2025
1.6.1 Jun 16, 2025
1.5.0 Jun 16, 2025
1.4.0 Jun 13, 2025
1.3.4 Jun 10, 2025
1.3.3 May 30, 2025
1.3.2 May 30, 2025
1.3.0 May 30, 2025

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.