All Products
Search
Document Center

Container Compute Service:Use WAF-enabled ALB instances to protect applications

Last Updated:Mar 26, 2026

If your services are frequently attacked, enable Web Application Firewall (WAF) on Application Load Balancer (ALB) instances to protect them. WAF-enabled ALB instances defend against DDoS attacks, SQL injection, cross-site scripting (XSS), malicious HTTP requests, and SSH brute force attacks. WAF-enabled ALB instances support various HTTP protocols and encoding algorithms to help you build an in-depth and precise security system.

For more information, see Benefits of WAF-enabled ALB instances and What is WAF?

Important

For more information about the billing rules of WAF-enabled ALB instances, see ALB billing rules.

Prerequisites

Before you begin, ensure that you have:

Enable WAF protection

Set the edition parameter in AlbConfig to StandardWithWaf to enable WAF, or Standard to disable it. Apply this change when creating a new ALB instance or modifying an existing one.

ParameterAllowed valuesDescription
editionStandard, StandardWithWafThe edition of the ALB instance. Set to StandardWithWaf to enable WAF protection. Set to Standard to disable it.

To enable WAF, set edition to StandardWithWaf in your AlbConfig:

apiVersion: alibabacloud.com/v1
kind: AlbConfig
metadata:
  name: alb
spec:
  config:
    addressType: Internet
    edition: StandardWithWaf
    zoneMappings:
      #...

To disable WAF, set edition to Standard and reapply.

Next steps