Web application firewall for a self-hosted Magento store

A web application firewall can filter attacks aimed at Magento admin, checkout and APIs, but only if it is placed, tuned and monitored for this platform. This page covers the decisions, setup sequence and PCI DSS fit.

On this page

Why a Magento store needs a web application firewall in front of it

A self-hosted Magento Open Source store exposes three kinds of HTTP traffic to the internet: the public storefront, the admin panel and the checkout flow, and each attracts different attacks. A web application firewall (WAF) is the layer that inspects those HTTP requests and blocks or logs the ones that match attack patterns, such as SQL injection, cross-site scripting attempts, path traversal and requests aimed at admin routes. It sits in front of the application, usually at the edge load balancer, a reverse proxy or a managed service, and it works on request content and headers rather than on the Magento code itself. Teams usually add one when the store takes card payments, when admin access must be reachable from more than a single office network, or when a patch cannot be applied immediately after an advisory. Placement depends on the stack. Adobe's 2.4.9 requirements list nginx 1.30 as the web server, and self-managed installations commonly place Varnish 8 as the full-page cache, so the reader must decide whether the WAF sits before Varnish, between Varnish and nginx, or both. Confirm with your architecture which layer sees the real client address and the original request path, because rules written for the wrong layer will miss traffic.

A WAF does not replace the controls that close the underlying weaknesses. Patching is still the primary defense: Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, and a rule that blocks a known exploit payload does not remove the vulnerable code. Admin hardening, such as restricting admin access by network, enforcing two-factor authentication and locking sensitive configuration, limits what an attacker can do after a credential is stolen, which a WAF cannot prevent when the request looks legitimate. Content Security Policy, which Magento supports from 2.3.5 and runs in restrict mode by default on storefront and admin payment pages from 2.4.7, controls which scripts a browser will run, a protection that a WAF only approximates. Treat the WAF as one layer that reduces exposure and buys time, and record in the security plan which risks it covers and which remain with patching, hardening and CSP.

Before you select a product, ask the vendor or service provider which managed rule sets they ship for Magento, how they update them, and whether they can run in detection mode first. Your own environment will decide the rest: traffic volume, whether the admin URL is public, how many integrations call the REST or GraphQL endpoints from outside the network, and which team will review blocked requests. The PCI DSS requirement areas on network security controls and public-facing web application protection are the reference points an assessor will ask about, so keep the rule configuration, change records and review evidence from the first day. Confirm the current PCI DSS version your acquirer expects, since the PCI Data Security Standard page is the authoritative source for the requirements and their status.

How requests reach Magento through the WAF

The path starts at the client and passes through the edge (a CDN or DNS layer only if your design uses one), then the WAF, then nginx. Storefront requests may be answered by Varnish when it is deployed, so cached pages never reach the Magento application. Admin and checkout requests continue to the application, where they pass through stricter rule sets and then reach PHP, the database, search, Redis or Valkey and RabbitMQ. Confirm which components your deployment actually contains, because the chain changes with the chosen architecture. Check that the WAF sits on every public path, including the admin URL and API endpoints.

Request path from shopper to Magento data stores, with trust zones marked.

Where to place the WAF: cloud, appliance, or web server module

A managed cloud WAF sits in front of the origin as a hosted service. Traffic reaches the store through the provider's edge, and the provider typically maintains a base rule set, managed updates and reporting. The origin still runs Magento, PHP, nginx and Varnish, so application logic flaws, admin session misuse and vulnerable extensions remain your responsibility. Because the WAF terminates connections before your servers, your origin must accept traffic only from the provider's addresses, or attackers can bypass the WAF by reaching the origin directly.

  • Protection scope: Edge filtering of common web attacks and bot traffic before requests reach nginx and Varnish.
  • What stays with the origin: Authorization logic, patching, extension code and the admin path.
  • Caching effect: Cache rules at the edge can overlap with Varnish; confirm which layer caches which paths and how cache keys handle cookies.
  • Client IP handling: Forwarded headers must be trusted only from the provider, and Magento's trusted proxy settings must match.
  • Who operates the rules: The provider manages the base set, while your team or a partner tunes exceptions for checkout and API traffic.

Confirm with the vendor which managed rule sets, bot features and log export options are included in your plan, and how origin lockdown is implemented.

Which WAF option fits which team and hosting model

This table compares four ways to protect a self-hosted Magento Open Source store: a managed cloud WAF, a self-managed reverse proxy WAF, an nginx module WAF, and no WAF with compensating controls. Read each row against your own security staffing and hosting model, and treat the last column as the list of questions to settle with a vendor or your hosting team before you buy or build anything.

OptionWhere it runsFit for an in-house security teamOperational loadConfirm before buying
Managed cloud WAFVendor edge in front of your DNS, with traffic routed through the providerGood fit when the team wants rule updates and tuning support from the vendor and can review logs and alertsLower on-server work, but ongoing rule tuning and log review still sit with your teamWhether it supports Magento admin and checkout paths, how TLS and client IPs are passed through, and where logs are stored
Self-managed reverse proxy WAFA proxy or appliance you run in front of the Magento web tier, in your own infrastructureGood fit for teams that want full control of rules, logging and data location and have people to maintain itHigher: patching, sizing, rule sets, certificates and failover are your responsibilitySupported Magento rule sets or templates, the vendor's support window, and how it integrates with your load balancer and Varnish
nginx module WAFInside the nginx web server that serves the Magento storefront and adminFits teams that already run nginx with strong configuration skills and want a single tier to manageModerate to high: module upgrades, rule syntax, and interaction with Magento location blocks must be testedWhether the module build matches your nginx version (Adobe's 2.4.9 requirements list nginx 1.30), and whether it inspects request bodies used by checkout and APIs
No WAF, with compensating controlsNo inspection layer; protection relies on hardening, access restriction and monitoring of the Magento stackOnly defensible when the team can show the controls cover the risks a WAF would address, and documents that decisionLow tooling cost, but more manual work on admin restriction, patching and log reviewWhich PCI DSS requirements the controls satisfy through your own assessor's view, and how you would show it in your assessment

Which rules matter most for Magento admin and checkout

A WAF only protects what its rules describe, so each group below targets a specific Magento surface. The groups share one goal: block clearly hostile traffic on sensitive paths while leaving the storefront, checkout and integrations working for real shoppers and systems.

Admin login and admin paths

Attackers use the admin login for credential stuffing and brute force, and they probe known admin paths for old tools. Write rules that rate-limit login POST requests, block repeated failures from one source, and deny direct access to admin routes from addresses outside your staff network. Confirm that the admin URL path is not a default value and that the rules follow whatever path you set. Check the rule logs after a test login from an unapproved location.

Checkout and payment POST requests

Checkout and payment forms accept card-adjacent data, so they are the usual target for injection and form tampering. Rules should inspect POST bodies for SQL and script injection patterns on checkout, cart and payment routes, and restrict which hosts can submit to them. Confirm with your payment provider which callback and return URLs must stay open, because blocking those breaks payment confirmation. Treat any change to these rules as a change to your PCI DSS scope documentation.

Customer account forms

Customer login, registration and password reset forms face credential stuffing from leaked password lists and automated account creation. Rate limits per IP and per target account help more than broad blocking, because shared office and mobile addresses are common. Pair these rules with CAPTCHA on the same forms. Confirm how your WAF identifies a real client behind a load balancer, since a misread address can lock out many shoppers at once.

GraphQL and REST endpoints

Magento exposes GraphQL and REST endpoints that storefront scripts and integrations call, and they accept large, deeply nested queries. Rules should cap request body size, limit request rates on the GraphQL path, and reject methods that an endpoint does not use. Expect false positives here: JSON bodies with quotes or angle brackets look like injection to generic signatures. Tune rules on a staging copy using real storefront traffic before enforcing.

Cron and internal paths

Cron entry points, setup tooling, health check routes and internal service ports should never be reachable from the public internet. Write deny rules for these paths at the edge and confirm that the web server and the server firewall block them too, so a single rule change does not expose them. Ask your team to list every internal path the store uses, because a path missing from the list is usually the one that gets exposed.

Skimmer and script tampering

Card skimmers are JavaScript injected into checkout pages, and a WAF rule alone does not detect them. Use the WAF for outbound checks where your product supports them, and pair it with Content Security Policy headers that limit which scripts can run on payment pages. Confirm the policy works in report mode on staging before enforcing, since blocked third-party scripts can stop checkout.

CSP documentation

How to tune false positives for Magento APIs without weakening checkout

Generic WAF signatures were written for browser traffic, so the API calls that keep a Magento store connected to its ERP, PIM and marketplace connectors often look like attacks. Integration requests carry large JSON bodies with product or order batches, use bearer-style Authorization headers, and send many similar POST or PUT calls to the REST and GraphQL endpoints in a short window. Rules that inspect body size, flag unusual content types, or block requests without a browser user agent will fire on this traffic long before they fire on a real attack. The fix is to tune rules by endpoint, not to switch the WAF off for the whole site.

Start in detect mode, not block mode. Run the WAF for a representative period that covers a full cycle of ERP syncs, catalog imports, stock updates and a normal checkout day, and log every match with its path, HTTP method, source address, rule ID and the header or body field that triggered it. Group the matches by endpoint. The REST routes under /rest/, the GraphQL endpoint and the storefront checkout and cart paths should each be reviewed separately, because a rule that is noise on an integration route may be a real signal on checkout. Confirm the exact routes your installed release exposes against the Magento documentation for that version, since REST and GraphQL behavior can differ between releases and between Magento Open Source and Adobe Commerce.

Build each exception to be as narrow as the evidence allows: a specific path, a specific method, and a specific source such as the connector's fixed egress address or a dedicated integration token scope, rather than a whole directory or a global disable. Then retest checkout after every single change, using test payment and shipping methods and a scripted set of guest and logged-in journeys, so you can see which rule change caused a regression. Record each exception with its owner, reason and review date. Ask your WAF vendor or implementation partner to show how exceptions are versioned and rolled back, and confirm that exceptions for API routes never cover the checkout, login or admin paths.

Setting up the WAF in front of a Magento store, step by step

This sequence places a web application firewall in front of a self-hosted Magento Open Source store without breaking caching, checkout or admin access. Each step ends with a check that proves the previous work holds before the next one starts.

  1. Confirm supported Magento and stack versions

    Before any traffic moves, record the exact Magento Open Source release, PHP, database, search, cache and web server versions in use, and compare them with the combinations Adobe lists for that release in its system requirements. Your team and the WAF vendor should both confirm the WAF supports your TLS versions and HTTP features. Done means a signed-off version sheet exists and every component is on a release line that still receives security patches under Adobe's lifecycle policy. Confirm this with your Adobe-listed combinations, not from memory.

  2. Map public and internal routes

    List every hostname and path the internet can reach: storefront pages, checkout, customer account, the admin path, REST, SOAP and GraphQL endpoints, webhooks from payment and shipping providers, and any internal callbacks from ERP or PIM connectors. Mark which paths must stay reachable only from office or VPN addresses. Done means a route inventory exists with an owner and an expected source for each entry, which later becomes the basis for rule scoping and for testing.

  3. Restrict the origin so only the WAF can connect

    Configure the firewall or security group in front of the web server so that port 80 and 443 accept connections only from the WAF's addresses, and make the admin path unreachable directly from the internet. Engineers should also check that the database, Redis, OpenSearch and RabbitMQ are not exposed at all. Verify from an outside network that a direct request to the origin fails and that a request through the WAF succeeds. This prevents attackers from bypassing the WAF by finding the origin IP address.

  4. Configure TLS and real client IP forwarding

    Terminate TLS at the WAF or at the web server according to your design, and keep certificates, cipher settings and renewal under your control. Configure the trusted proxy list in Magento and nginx so that the real client address, not the WAF address, reaches session, rate-limit and log logic. Confirm that the forwarded header is accepted only from the WAF. Done means a test request shows the true client IP in Magento's access log and that a spoofed forwarded header from outside is ignored.

  5. Deploy the WAF in detect mode and confirm caching

    Place the WAF in detect mode, where it logs matches but does not block, and check that Varnish still caches storefront pages with the expected hit rate and that cache-control headers pass through unchanged. Checkout, customer account and admin pages should never be cached. Run a set of normal shopping and admin sessions and review the logs. Done means storefront responses show Varnish cache hits, private pages are not cached, and the detect logs contain no unexplained blocks on normal traffic.

  6. Define admin and checkout rules

    Write rules for the admin login, admin actions and the checkout steps, scoped by path and method rather than applied globally. Focus on request size limits, blocking common injection patterns in form fields, rate limits on login and coupon or account endpoints, and protection against automated card testing at the payment step. Coordinate with the team that owns Content Security Policy and reCAPTCHA so the rules do not duplicate or conflict with them. Done means each rule has a stated purpose, a scope and a log entry that can be reviewed.

  7. Tune API rules and document false positives

    Replay REST, GraphQL and integration traffic from ERP, PIM and marketplace connectors through detect mode, then review every match. Common false positives come from JSON bodies, rich-text product descriptions and bulk import payloads, so create narrowly scoped exceptions by path and parameter rather than turning rules off. Record each exception with the reason, the owner and a review date. Done means a clean run of your integration test suite produces no unexpected blocks, and the exception register is approved by the integration owner.

  8. Switch selected rules to block mode and document the rule set

    After the detect phase, move only the rules you have reviewed into block mode, starting with admin login and the highest-confidence injection patterns, and keep the rest in detect. Run the route inventory and the test sessions again, then record the final rule set, the exception register, the origin restriction settings and the log retention location in a document the security and compliance teams can review. Done means blocked requests appear in logs with the rule that fired, the document is version controlled, and each block-mode rule has an owner who will review it after Magento upgrades.

Security and operational considerations after go-live

A WAF only protects the traffic that passes through it, and its rules age as Magento changes. The cards below cover the operating decisions that keep the WAF useful after launch, from logs and alert routing to origin exposure, certificates and patch alignment. They also set out where Magento's own Content Security Policy controls sit relative to the WAF.

Logging and retention

Decide which WAF events are kept, for how long, and where they are stored. Blocked requests against the admin login, checkout and payment callback paths are the events an investigator needs first, so they should be retained even if routine allowed traffic is sampled. Confirm the retention period with your compliance lead and check that logs containing card-adjacent data, such as query strings on checkout routes, are masked before storage. The retention and access rules for these logs should be written down before go-live.

Alert routing to responders

Route WAF alerts to the team that answers incidents, not to a shared mailbox nobody reads. Separate high-signal alerts, such as repeated admin login blocks or mass requests to checkout endpoints, from low-value noise like single scanner hits. Each alert class should name an owner, an acknowledgement expectation and a documented first step. Test the path end to end, including out-of-hours, before relying on it.

Rule change control

Every WAF rule change should go through the same review as application code: a written reason, a test in staging, a named approver and a rollback step. Tuning for false positives is the most common source of unplanned change, so record which rule was disabled, for which path and why. Periodic review of exceptions is what stops temporary allowances from becoming permanent gaps. Ask your WAF provider how rule history and version control are exposed to your team.

Bypass through the origin

A WAF is ineffective if attackers can reach the Magento origin server directly, by IP address or through a hostname that was never pointed at the WAF. Restrict inbound traffic at the network layer so that only the WAF's addresses can reach the web server, and verify this from outside your network. Review DNS records and any staging or legacy hostnames that still resolve to the origin. Confirm the exact mechanism your WAF uses to identify its traffic before you lock the origin down.

TLS keys and certificates

When the WAF terminates TLS, it holds the private keys for your store domains, so it becomes part of your key management scope. Define who can export or replace certificates, where private keys are stored and how renewals are tracked so an expired certificate does not take checkout offline. If the WAF re-encrypts traffic to the origin, the origin certificate and its trust settings need the same ownership. Confirm these responsibilities in writing with the hosting or WAF provider.

Keeping pace with Magento patches

WAF signatures do not replace Magento patches, and Magento releases change the request paths and parameters that rules depend on. Track Adobe's release schedule for your 2.4.x line, retest WAF rules after each patch or minor upgrade, and confirm that the admin, checkout and API rules still match the current routes. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, so plan WAF retests into the same maintenance window.

Adobe upgrade guide

Content Security Policy as a separate layer

Magento's Content Security Policy headers control which scripts, frames and sources a browser may load on storefront and admin pages, which addresses a different risk from the request filtering a WAF performs. Adobe documents CSP support from 2.3.5, and from 2.4.7 it runs in restrict mode by default on storefront and admin payment pages. Treat CSP as a complement to the WAF, and verify its policy after each upgrade and any third-party script change.

CSP documentation

How a WAF fits PCI DSS expectations for a Magento merchant

A web application firewall does not make a Magento store PCI DSS compliant, and the assessment does not turn on whether one is installed. The PCI Security Standards Council owns and maintains PCI DSS, but the individual payment brands decide which merchants must validate and run any enforcement. Validation is documented either on a Report on Compliance completed by a Qualified Security Assessor or on a Self-Assessment Questionnaire, and each is closed with an Attestation of Compliance. Before you buy or tune a WAF, confirm with your acquirer or payment brand which validation path applies to your store, because that determines how much evidence the assessor will ask for.

Where a WAF helps is in the requirements that cover protecting public-facing web applications and monitoring what reaches them. For a self-hosted Magento store, that means the storefront, the admin login, the checkout and any API endpoints used by ERP or payment connectors. The control is evidenced in one of two ways under PCI DSS v4.0.1, the active version: the defined approach, which follows the requirement as written, or the customized approach, which meets the stated objective in a different way and requires documented analysis and a strong risk management practice. Decide early which approach you are using for each control, because the WAF rules, logs and change records you keep will be judged against that choice.

DeployOpen prepares the evidence for that review, including WAF configuration baselines, rule change records, log retention settings, test results and the scope diagram of which hosts sit behind the WAF. DeployOpen does not issue attestations, and a QSA or the relevant SAQ determines whether your controls satisfy each requirement. Ask your assessor, before implementation starts, which artifacts they expect for the WAF, how they want the cardholder data environment boundary drawn, and whether a customized approach would be accepted for any rule set. Those answers should shape the scope of the work you agree in writing.

Questions teams ask before adding a WAF to Magento

Does PCI DSS require a web application firewall for a Magento store?

PCI DSS does not name a web application firewall as a single mandate, so whether you need one depends on your cardholder data environment and how your requirements are met. The standard is owned by the PCI Security Standards Council, and the payment brands decide which entities validate compliance. In practice, a WAF is one way to address the requirements that cover protecting public-facing web applications against attacks, and assessors look for that protection whether it comes from a WAF or another control. Confirm the expected approach with your acquirer or Qualified Security Assessor before you buy anything, and document how the control meets the objective.

What drives the effort of a WAF implementation on Magento?

Effort depends mainly on how many entry points the store exposes and how much traffic shape you need to understand. The main drivers are:

  • The hosting model: a cloud WAF, a WAF appliance in your data center, or a module on the web server each change the work.
  • The number of storefront, admin, API and checkout routes, plus any custom endpoints from extensions and integrations.
  • Whether TLS terminates before or after the WAF, and how Varnish and the origin servers are placed behind it.
  • Logging, alert routing and the number of environments that must match production.

Ask the partner to list each route group and environment in the written scope.

What does our team need to provide for a WAF project?

Your team needs to provide access and knowledge that only your organization has. Typically this includes administrative access to the DNS, load balancer, CDN and cloud accounts where the WAF sits, copies of the Magento version and installed extensions, a list of third-party integrations such as ERP, payment and shipping connectors, and staging environments that mirror production. You also need an owner for alerts, a person who can approve rule changes, and a named contact for payment and compliance questions. Agree on these responsibilities in the written scope so that delays do not appear later in the timeline.

Can our own team tune WAF rules for Magento APIs?

Yes, if your team has web security skills, access to the logs and enough time to review blocked requests. Tuning means reviewing legitimate requests that were blocked, deciding whether to exclude a specific rule for a specific path or parameter, and retesting the checkout, admin and API flows. Teams without experience with Magento GraphQL, REST and integration traffic often find it harder to separate attacks from normal ERP or payment callbacks. A partner can run tuning alongside your team, or you can split the work with a clear owner for each rule change and a test plan that covers the flows that earn revenue.

How long does WAF tuning usually take, and what changes that?

No fixed duration applies, because tuning length depends on the traffic your store receives, the number of integrations hitting the API, and how many false positives appear in the first weeks. Stores with heavy API traffic from ERP, PIM or marketplace connectors usually need more review cycles than a store with simple storefront traffic. Other drivers include how often the team deploys Magento patches, which can change request patterns, and how quickly rule exceptions are approved. Ask for the tuning phases, exit criteria and a review cadence in the quote rather than a single number.

How does a WAF affect Varnish caching and cache behavior?

Adobe documents Varnish as the full-page cache accelerator for self-managed installations, so a WAF placed in front of Varnish sees requests before the cache responds. Rules that inspect or rewrite headers, cookies or query strings can change cache keys, and some rules may block requests that Varnish would otherwise serve from cache. Confirm the order of WAF, CDN, Varnish and origin, check that the WAF forwards the headers Magento depends on, and test cache hit rates before and after rule changes. Avoid caching responses for admin, checkout and customer pages.

What should we ask for in a written WAF quote?

Ask for a quote that lists the scope in concrete terms, so you can compare options fairly. Include:

  • The WAF platform or deployment model, the environments covered and the route groups protected.
  • Which rule sets are applied, how exceptions are documented and who approves them.
  • The tuning phases, test cases for checkout, admin and API flows, and exit criteria.
  • Logging, alert routing, retention and access to logs for your compliance team.
  • Responsibilities for each party, the assumptions behind them and what happens if a dependency is late.
  • Which items are one-time work and which recur, such as license renewals, rule updates and retesting after Magento patches.

Limits to confirm in your environment

A WAF sits in front of a Magento store and touches every request, so its fit depends on the stack behind it, the API traffic it must not break, and the compliance evidence it creates. The cards below list the points to confirm with the WAF vendor and your own team before you write rules or sign a contract.

WAF support for your web tier

Confirm that the WAF vendor documents support for the exact nginx version and Varnish version in your stack. Adobe's 2.4.9 requirements list nginx 1.30, and the 2.4.8-p5 requirements list nginx 1.30 and Varnish 8, so check both the web server and the cache layer. Ask whether the WAF runs in front of Varnish, behind it, or on the origin, because that choice changes which client IP the rules see and how cached pages are protected.

System requirements

Inspection of JSON API bodies

Ask whether the WAF parses JSON request bodies for the REST and GraphQL endpoints that ERP, PIM and checkout front ends call, and whether it can exempt specific paths or fields without disabling inspection for the rest of the site. Without this, a rule that blocks SQL-like text may stop a legitimate product or order payload. Request a written description of how the vendor handles nested JSON and large bodies.

Log licensing and data residency

WAF logs contain client IP addresses, session cookies and sometimes checkout form values, so they fall under your data handling obligations. Confirm where the vendor stores logs, how long they are retained by default, whether you can export them to your own SIEM, and what license terms apply to log volume. For a self-hosted store, ask whether the vendor can run in your own region or data center.

TLS settings the vendor supports

Confirm that the WAF terminates or inspects TLS using the protocol versions and cipher suites your security baseline requires, and that it can accept the certificate chain and key management you already use. If the WAF cannot match your settings, you may need to weaken the origin configuration or accept a gap in inspection. Ask for the supported TLS list in writing and test it against your own scan results.

Magento release and patch level

Record the exact Magento Open Source version and patch level, because WAF rules that target admin and checkout paths depend on the routes and CSP behavior of that release. Adobe lists 2.4.9 and 2.4.8-p5 as released on May 12, 2026, and Adobe's end of regular support for 2.4.6 falls on August 11, 2026. Ask the vendor to confirm which Magento versions its managed rule sets were tested against.

Lifecycle policy

Vendor PCI responsibility matrix

Request the vendor's PCI DSS responsibility matrix in writing. It should state which requirements the WAF vendor covers, which remain with you, and which depend on your configuration of the WAF. The PCI SSC does not enforce compliance, so your acquirer or payment brand will read this matrix as part of your own assessment. A vendor claim of compliance does not replace your own evidence or your assessor's review.

PCI DSS overview

Where to confirm the requirements behind the design

Before you fix the WAF placement, confirm the platform versions it must sit in front of. The Magento system requirements for your release list the supported PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx combinations, and Adobe supports only the combinations it lists. Check that your web server and any proxy in the request path are on the list, and confirm with your hosting team that the WAF product itself is compatible with the nginx version you run. The Adobe Commerce system requirements page is the place to start.

Next, confirm how caching sits in front of the application. Adobe documents Varnish as the full-page cache accelerator for self-managed installations. That changes where the WAF can inspect traffic, how it treats cached pages, and whether it can see the real client address when Varnish forwards requests. Review the Varnish cache configuration guide and write down the request path from browser to WAF, Varnish, nginx and PHP-FPM before you write any rules. Also confirm which paths must never be cached, such as the admin area and cart and checkout pages.

Use the Content Security Policy documentation to see which browser-side protections the platform already applies, so the WAF does not duplicate or break them. Magento supports CSP headers from version 2.3.5, and from 2.4.7 the policy runs in restrict mode on storefront and admin payment pages. Decide which of these headers the WAF may modify or strip. Then review the PCI Security Standards Council's PCI DSS page with your assessor to confirm which current requirement versions apply to your cardholder data environment and how a WAF is evidenced under them, since the standard does not name specific products.

How DeployOpen scopes and delivers WAF work for Magento

DeployOpen plans, builds and hands over a web application firewall in front of your self-hosted Magento Open Source store, inside infrastructure you control. The work starts with a written scope that separates admin, checkout and API traffic, so rules are tuned for each path before anything goes live.

How we scope

  • Confirm the Magento version and its PHP, MySQL or MariaDB, OpenSearch and Varnish components against Adobe's system requirements.
  • Map which hostnames, admin paths, checkout endpoints and REST or GraphQL routes must pass through the firewall.
  • Agree in writing which PCI DSS requirements the firewall supports and which evidence your assessor will expect.

How we build

  • Deploy the firewall in front of the web server with logging enabled and rules set to detection mode first.
  • Write and tune rules for admin login, checkout and payment callbacks, and document each exception with its reason.
  • Test false positives against integrations, ERP and payment connectors, then test blocking rules against attack traffic.

How we hand over

  • Deliver the rule set, exception register, tuning log and network diagram, with owners named for each rule group.
  • Document the runbook for rule changes, emergency blocks, log review and firewall upgrades alongside Magento patch cycles.
  • Walk your security and operations teams through alerts, dashboards and how to roll back a rule safely.

How we support

  • Offer ongoing rule maintenance and tuning as a retainer, covering new Magento patch releases and integration changes.
  • Retest the firewall after each Magento upgrade or significant storefront change within the agreed scope.
  • Confirm with your team which support hours, response paths and evidence formats the retainer must include before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.