All Products
Search
Document Center

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

Last Updated:Dec 10, 2024

If your services are frequently attacked, you can use Application Load Balancer (ALB) instances that have Web Application Firewall (WAF) enabled to protect your services.

Background information

A WAF-enabled ALB instance is a specific type of ALB instance. You can use WAF-enabled ALB instances to prevent common network attacks, such as DDoS attacks, SQL injection, cross-site scripting, malicious HTTP requests, and SSH brute force attacks. WAF-enabled ALB instances support various HTTP protocols and encoding algorithms to help you build a in-depth and precise security system. For more information about the features of WAF-enabled ALB instances, see Benefits of WAF-enabled ALB instances. For more information about WAF, see What is WAF?

Important

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

Prerequisites

Configure a WAF-enabled ALB instance

When you create an ALB instance or modify the configuration of an existing ALB instance, you can configure the edition parameter in the AlbConfig.

Add the edition parameter to the AlbConfig and set the value to StandardWithWaf to enable WAF for the ALB instance.

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

If the ALB instance no longer needs WAF protection, set the value of the edition parameter to Standard.

References