> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Security and Traffic Protection

> The DDoS, WAF, bot, and rate-limiting protections included with Storefront Hosting, what you control, and how to put your own Cloudflare zone or third-party WAF in front of your storefront.

Every Catalyst storefront on Storefront Hosting runs behind BigCommerce's platform protections, with nothing to turn on. This page covers what those protections include, what you control, and how to add your own web application firewall (WAF) when you need rules of your own.

> **Warning**
>
> The Catalyst CLI is generally available, but Storefront Hosting is currently
> in closed beta. There may be breaking changes to the Storefront Hosting APIs as we
> finalize them. To express interest in gaining access, fill out the [Storefront Hosting Closed Beta Interest Form](https://docs.google.com/forms/d/e/1FAIpQLSfDepq3qRtEtavb1wQvSvdK21pwr_kNsYQbH2B7JjWYyptUSA/viewform?usp=header).

## How traffic reaches your storefront

Shopper requests reach your storefront in one of two ways:

* **Directly.** Your domain points at BigCommerce. Requests pass through BigCommerce's edge on Cloudflare's network, then reach your Catalyst storefront.
* **Through your own WAF.** Your domain points at a WAF or reverse proxy that you run, such as your own Cloudflare zone or AWS CloudFront with AWS WAF. Your rules run first, then requests continue through BigCommerce's edge to your storefront.

BigCommerce's protections apply on both paths. Your own WAF adds rules on top of them; it doesn't replace them.

## What's included

Storefront Hosting gets the same platform protections as every BigCommerce storefront:

| Protection                             | What it does                                                  |
| -------------------------------------- | ------------------------------------------------------------- |
| Network-layer (L3/4) DDoS mitigation   | Absorbs volumetric attacks before they reach your storefront. |
| Application-layer (L7) DDoS mitigation | Detects and mitigates floods of HTTP requests.                |
| Managed WAF rules                      | Blocks common web attacks, such as injection attempts.        |
| Bot detection and mitigation           | Identifies and blocks malicious automated traffic.            |
| Rate limiting                          | Limits excessive request rates to the platform and its APIs.  |

BigCommerce manages these protections for every store. You can't view or configure them, and blocked or challenged requests aren't reported to you. For your storefront's own request logs, use [`catalyst logs`](/developer/docs/storefront/catalyst/reference/cli#logs-tail).

## Shared responsibility

What BigCommerce handles and what you control, with and without your own WAF:

| Protection          | What BigCommerce handles                                    | What you control by default                  | What you control with your own WAF            |
| ------------------- | ----------------------------------------------------------- | -------------------------------------------- | --------------------------------------------- |
| DDoS attacks        | Mitigates network and application-layer attacks at the edge | Nothing to configure                         | Your WAF adds its own DDoS protection         |
| WAF rules           | Runs a managed rule set for all stores                      | You can't view or change the rules           | Write and tune your own rules                 |
| Bots                | Detects and blocks malicious bots platform-wide             | Turn on reCAPTCHA for storefront forms       | Add bot rules and challenges                  |
| Rate limiting       | Applies platform and API rate limits                        | You can't configure limits                   | Set limits per route, such as cart or sign-in |
| Geo and IP blocking | Not offered per store                                       | Not available                                | Block or allow countries and IP addresses     |
| Security events     | Kept internally                                             | You can't see blocked or challenged requests | See them in your WAF provider's dashboard     |

## When to use your own WAF

Put your own WAF in front of your storefront when you need any of the following:

* Custom WAF rules for your storefront
* Rate limits on specific routes, such as cart, sign-in, registration, or search
* Bot challenges for high-demand events, such as product drops
* Geo or IP blocking
* Visibility into blocked and challenged requests
* A WAF provider that your security team already requires

## Use your own Cloudflare zone

If your domain is on Cloudflare, use the [Cloudflare (Orange-to-Orange) setup](/developer/docs/storefront/catalyst/deployment/storefront-hosting/custom-domains#cloudflare-orange-to-orange-setup). This is the recommended way to add your own rules: it needs no extra DNS records, adds no extra network hop, and BigCommerce's protections still see each shopper's real IP address. Your Cloudflare security settings then apply to storefront traffic. When you configure them:

* Keep the zone's SSL/TLS mode on **Full** or **Full (strict)**.
* Focus bot and rate-limiting rules on the routes that reach BigCommerce uncached: cart, sign-in, registration, search, and checkout.
* Don't cache HTML pages at your zone. Catalyst pages are rendered per request and can include shopper-specific content.

## Use a third-party WAF or reverse proxy

You can put any WAF that runs as a reverse proxy in front of Storefront Hosting, such as AWS WAF with CloudFront, Akamai, Imperva, Fastly, or Azure Front Door. Your domain's DNS points at the provider, and the provider forwards requests to BigCommerce.

A proxy in front of your domain stops BigCommerce from validating it the usual way, so you publish two extra DNS records: a `CNAME` that validates the TLS certificate, and a `TXT` record that validates the hostname.

### Publish the certificate validation record

For a domain such as `shop.example.com`, publish this `CNAME`. The target is your domain followed by `.a754438ddee234e3.dcv.cloudflare.com`; see [DCV records](https://support.bigcommerce.com/s/article/Changing-Domains?language=en_US#dcv-records).

```text showLineNumbers={false}
Type:   CNAME
Name:   _acme-challenge.shop
Target: shop.example.com.a754438ddee234e3.dcv.cloudflare.com
```

Keep this record in place. BigCommerce uses it every time it renews the certificate.

### Add the domain to your project

Register the domain with the CLI. Ignore the pointing records it prints, since your domain points at your WAF provider instead.

```shell showLineNumbers={false}
pnpm catalyst domains add shop.example.com
```

### Publish the hostname validation record

Once the domain is added, ask your account manager for its hostname validation `TXT` record, then publish it:

```text showLineNumbers={false}
Type:   TXT
Name:   _cf-custom-hostname.shop
Value:  <YOUR_HOSTNAME_VALIDATION_VALUE>
```

If you remove the domain and add it again, the value changes, so request a new one.

### Configure your WAF provider

Create an origin or distribution in your provider with these settings:

| Setting         | Value                                                                                                                                           |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Origin          | `shops.mybigcommerce.com`                                                                                                                       |
| Host header     | Forward the shopper's `Host` header. If the provider sends `shops.mybigcommerce.com` instead, BigCommerce returns a **Store Unavailable** page. |
| Origin protocol | HTTPS only, TLS 1.2 or later                                                                                                                    |
| HTTP methods    | Allow all methods, including `POST`, which Catalyst uses for actions such as add to cart.                                                       |
| Caching         | Don't cache HTML pages. Forward cookies and query strings to the origin.                                                                        |

### Point your domain at your WAF provider

Publish the `CNAME` or other record your provider gives you for the domain.

### Wait for verification

The domain starts as `pending` and becomes `active` once BigCommerce validates both the certificate and the hostname. See [Check domain status](/developer/docs/storefront/catalyst/deployment/storefront-hosting/custom-domains#check-domain-status).

### Put your checkout domain behind the same WAF

A checkout subdomain, such as `checkout.example.com`, needs its own validation records and its own entry in your WAF provider. Instead of `domains add`, set it as the channel's checkout URL, which creates the hostname so your account manager can look up its `TXT` value:

```shell showLineNumbers={false}
pnpm catalyst channels update --channel-id 123 --checkout-url checkout.example.com
```

Then publish the `_acme-challenge` `CNAME` and `_cf-custom-hostname` `TXT` records for the subdomain, and configure it in your provider with the same settings, including the `shops.mybigcommerce.com` origin. For more on checkout URLs, see [Checkout Domains](/developer/docs/storefront/catalyst/deployment/storefront-hosting/checkout-domains).

### Things to know about third-party proxies

* **Removing the certificate validation record can cause downtime.** Without it, renewal has to complete through your proxy, which can fail and leave the domain without a valid certificate.
* **Requests take longer**, because your provider adds a network hop.
* **BigCommerce's protections see your proxy's IP addresses, not your shoppers'.** During a traffic spike, rate limits and challenges can apply to those addresses and affect every shopper behind them. Your own Cloudflare zone avoids this.
* **Custom certificates aren't supported.** The domain uses the certificate BigCommerce issues for it.

### Verify the setup

After the domain is active, confirm that:

* `pnpm catalyst domains status shop.example.com` shows the domain as `active`.
* Pages load over HTTPS without redirect loops.
* Signing in, adding to cart, and starting checkout all work.
* A test rule in your WAF provider takes effect on storefront traffic.

## Protect forms with reCAPTCHA

Catalyst 1.6.0 and later support reCAPTCHA v2 on the registration, contact, and product review forms. Turn it on in the control panel; no code changes are needed.

## Plan for high-traffic events

If you expect traffic well above your normal peak, let BigCommerce know ahead of time through your account team or [BigCommerce Support](https://support.bigcommerce.com). Don't load test your production storefront or your store's APIs without talking to them first.

If traffic overwhelms your storefront, contact BigCommerce Support. With your own WAF, you can also tighten its bot and rate-limiting rules.

## Fraud protection

Checkout is hosted by BigCommerce, not by Storefront Hosting, so fraud protection works the same as on any BigCommerce store. See [How to Combat Ecommerce Fraud](https://support.bigcommerce.com/s/article/How-to-Combat-Ecommerce-Fraud?language=en_US) for built-in options and third-party fraud apps.

## Security reviews

For BigCommerce's certifications and to request a security review, see [security.bigcommerce.com](https://security.bigcommerce.com) and [Privacy and Security](/developer/docs/storefront/catalyst/reference/security). For more detail about the platform protections, contact your account manager.