Download the PHP package lwplugins/lw-firewall without Composer

On this page you can find all versions of the php package lwplugins/lw-firewall. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lw-firewall

LW Firewall

Lightweight WordPress firewall — rate-limits endpoints, blocks bots, bans repeat offenders, and adds security headers.

PHP Version WordPress Version License

The Problem

Bots brute-force wp-login.php, flood wp-cron.php and xmlrpc.php, crawl WooCommerce filter combinations, scan for vulnerabilities via 404s, and abuse the REST API — all generating thousands of uncacheable requests that overload your server.

How It Works

LW Firewall installs an MU-plugin worker that intercepts requests before WordPress fully loads. The processing order:

  1. IP Whitelist — whitelisted IPs skip all checks
  2. IP Blacklist — blacklisted IPs get 403 immediately
  3. Geo Blocking — block entire countries (Cloudflare header or CIDR lookup)
  4. Auto-Ban — previously banned IPs get 403
  5. 404 Flood — IPs with excessive 404s get 429
  6. Bot Blocking — User-Agent matching (all requests)
  7. Endpoint Detection — filter params, cron, xmlrpc, login, REST API
  8. Rate Limiting — per-IP counters with auto-ban escalation

Features

Endpoint Protection

Endpoint Protection Response
WooCommerce filters Rate limit + bot blocking 302 redirect or 429
wp-login.php Brute-force rate limiting 429
wp-cron.php DDoS rate limiting 429
xmlrpc.php DDoS/brute-force rate limiting 429
REST API (/wp-json/) Rate limiting 429
404 flood Vulnerability scanner blocking 429

Bot Blocking

IP Whitelist / Blacklist

Geo Blocking

Auto-Ban

Security Headers

One-click addition of security HTTP headers:

Storage Backends

Backend Speed Persistence Requirement
APCu Fastest Per-process apcu extension
Redis Fast Shared redis extension + server
File Fallback Disk-based Always available

Auto-detection picks the best available backend.

MU-Plugin Worker

Cloudflare Support

Request Logging

Installation

Via Composer:

Manual:

  1. Download the latest release ZIP
  2. Upload to /wp-content/plugins/
  3. Activate in WordPress admin

Settings

Navigate to LW Plugins > Firewall in the admin panel.

Tab Description
General Enable/disable, storage backend, rate limit, time window, action, filter params
Protection Endpoint toggles (cron, xmlrpc, login, REST API, 404) and auto-ban settings
Bots Manage blocked bot User-Agent patterns
IP Rules IP whitelist and blacklist (IPs and CIDR ranges)
Geo Blocking Country-based blocking with Cloudflare or CIDR fallback
Security HTTP security headers toggle
Status MU-plugin worker status, worker version, active storage backend, reinstall worker
Logs Enable logging, view blocked requests, clear log
Import / Export Export settings as JSON, import on another site

WP-CLI Commands

wp-config.php Overrides

Override any setting via constants (takes precedence over admin UI):

Requirements

Part of LW Plugins

LW Firewall is part of the LW Plugins family — lightweight WordPress plugins with minimal footprint and maximum impact.

Plugin Description
LW SEO Essential SEO features without the bloat
LW Disable Disable WordPress features
LW Enable Enable WordPress features like SVG uploads
LW ZenAdmin Clean up your admin — notices sidebar & widget manager
LW Firewall Lightweight firewall — rate limiting, bot blocking, auto-ban
LW Cookie GDPR-compliant cookie consent
LW LMS Lightweight LMS — courses, lessons, progress tracking
LW Translate Manage community translations from GitHub
LW Site Manager Site maintenance via AI/REST using Abilities API

License

GPL-2.0-or-later. See LICENSE for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Sponsor

Sinann

Supported by Sinann


All versions of lw-firewall with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lwplugins/lw-firewall contains the following files

Loading the files please wait ...