Comparison · Self-hosted vs Managed

Rampart vs Cloudflare WAF

Cloudflare WAF is $20/mo (Pro). Rampart is a self-hosted alternative at $1.99/mo. Here's when each makes sense.

Try Rampart Free Rampart overview
RampartCloudflare WAF
HostingSelf-hosted, your infraManaged SaaS (cloud only)
Data locationYour server, your diskCloudflare WAF's cloud
Free tier3 rulesPaid only
Pro pricing$1.99/mo$20/mo (Pro)
DependenciesNone (single binary + SQLite)N/A (managed)
Setup time~30 secondsAccount signup
DashboardBuilt-in at /uiCloud dashboard
LicenseBSL 1.1Proprietary SaaS
When to use Rampart

Pick Rampart when you want simplicity and ownership.

Rampart is a single Go binary with embedded SQLite. Install it with one command, and you are running in under a minute. Your data stays on your server.

curl -fsSL https://stockyard.dev/rampart/install.sh | sh
Install Rampart Rampart docs

Cloudflare WAF makes sense when you need more.

Cloudflare WAF blocks attacks at the edge before they reach your server. For DDoS protection and global bot management, Cloudflare is essential. Rampart is a local WAF for teams that want application-layer protection without routing traffic through a third party.
The trade-off

Cloudflare WAF is a strong product. There is no point pretending otherwise. Where Rampart earns its place is in situations where Cloudflare WAF cannot be used — airgapped environments, regulated industries, teams with strict data sovereignty requirements, or simply developers who prefer tools they can inspect end to end. If none of those constraints apply, Cloudflare WAF may genuinely be the better choice.

Rampart runs as a single static binary with an embedded SQLite database. There is no application server, no cache layer, no background worker. One process handles HTTP requests and reads from and writes to the database file directly. This simplicity is the entire point — fewer moving parts means fewer things that can break at 2 AM.

Migration path

Switching from Cloudflare WAF to Rampart is straightforward for most teams. Export your data from Cloudflare WAF (most services offer CSV or JSON export), then POST each record to Rampart's API. A migration script that reads the export and writes to /api/ endpoints typically takes less than 50 lines of code. The reverse migration is equally simple — Rampart's SQLite database is a standard file you can query with any SQLite client.

FAQ
Is Rampart a Cloudflare alternative?
Cloudflare provides edge-level DDoS protection and WAF. Rampart is a local WAF. Cloudflare blocks at the perimeter; Rampart protects at the application level.
Does Rampart stop DDoS attacks?
Rampart handles application-layer attacks (SQL injection, XSS). For volumetric DDoS protection, Cloudflare or AWS Shield are necessary.
Related

Rampart overview

Get started

Self-hosted web application firewall in 30 seconds.

Single binary. Free to start. $1.99/mo for Pro.

Install Rampart All 150 tools for $29/mo →