---
schema_version: "1"
id: 629d176e447d8c8319cb5aa7801f3967d4cba7bcde768071e6b4a723e4ed610d
title: Set Up Custom Firewall Rules with the CDN-API
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_rn_set_up_custom_firewall_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_rn_set_up_custom_firewall_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 82314d2d4e5be15e5f4fd69ecdc03c2d9e2f5c7d628eba0fb3ad0cc672e087db
description: To enable better rule enforcement, the B2C Commerce CDN-API now supports custom firewall rules. The API also provides custom firewall controls to target traffic from a specific path or user agent. Custom firewall rules are a superset of existing firewall rules, it will replace the existing firewall rules for IP, ASN, Geo, the existing firewall rules will be deprecated by February 1, 2024. All firewall rules will be deprecated by February 1, 2024.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Set Up Custom Firewall Rules with the CDN-API

To enable better rule enforcement, the B2C Commerce CDN-API now supports custom firewall rules. The API also provides custom firewall controls to target traffic from a specific path or user agent. Custom firewall rules are a superset of existing firewall rules, it will replace the existing firewall rules for IP, ASN, Geo, the existing firewall rules will be deprecated by February 1, 2024. All firewall rules will be deprecated by February 1, 2024.

When: Complete the transition to custom firewall rules in place of [firewall rules](https://developer.salesforce.com/docs/commerce/commerce-api/references/cdn-api-process-apis?meta=createFirewallRule) before February 1, 2024.

#### See Also

- [Custom Rules](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-zones-custom-rules.html)