Updated on 2026-09-01 GMT+08:00

Website Connection Overview

To use WAF to protect your web services, connect the web services to WAF first. WAF provides cloud CNAME, cloud load balancer, and dedicated access modes for you. You can select an appropriate access method based on how your web services are deployed.

Tutorial Video

Access Description

You can use the following access methods: cloud CNAME, cloud load balancer, and dedicated mode.

  • How it works

    In cloud CNAME access, DNS routes the protected domain name to the CNAME record of WAF. The web services for the domain name are routed to WAF. WAF checks received traffic, filters malicious attack traffic, and returns normal traffic to the origin server over back-to-source IP addresses.

    During this process, WAF works as a reverse proxy cluster. It checks and forwards traffic of the protected website.

  • Applicable scenarios

    Service servers are deployed on any cloud or in on-premises data centers.

  • Protected objects

    Domain names

  • How it works

    After you connect a website to WAF, the ELB load balancer mirrors the website traffic to WAF. WAF checks the mirrored traffic and synchronizes the check result to the load balancer. The load balancer determines whether to forward client requests to the origin server based on the check result it receives.

    In this method, WAF does not forward traffic. This eliminates compatibility and stability issues that might be caused by additional-layer of traffic forwarding.

  • Applicable scenarios

    Large enterprise websites with service servers deployed on Huawei Cloud and high security requirements for service stability.

  • Protected objects

    Domain names, public IP addresses, and private IP addresses

Dedicated WAF instances are not available in some regions. For details, see Notice on Web Application Firewall (Dedicated Mode) Discontinued.

  • How it works

    In dedicated Mode, DNS routes the protected domain name to the EIP bound to the load balancer configured for the dedicated engine. In this way, the web service traffic for the domain name is routed to WAF. WAF detects and filters out malicious attack traffic and returns normal traffic to the origin server through back-to-source IP addresses or IP address ranges of the dedicated engine.

    During this process, WAF works as a reverse proxy cluster. It forwards and checks traffic of the protected website.

  • Applicable scenarios

    Large enterprise websites with service servers deployed on Huawei Cloud and requiring custom protection rules.

  • Protected objects

    Domain names, public IP addresses, and private IP addresses

Constraints

There are some restrictions on using different access modes.

Table 1 Restrictions on different access methods

Item

Cloud CNAME

Cloud Load Balancer

Dedicated Mode

Domain name restrictions

  • A domain name can only be added to WAF once in cloud mode.

    Each combination of a domain name and a non-standard port is counted towards the domain name quota of the WAF edition you are using. For example, www.example.com:8080 and www.example.com:8081 use two domain names of the quota. If you want to protect web services over multiple ports with the same domain name, add the domain name and each port to WAF.

  • If the origin server is located in the Chinese mainland, ensure that the domain name has been registered with an Internet Content Provider (ICP). WAF checks the ICP licenses of domain names you want to add to WAF. If a domain name does not have an ICP license, it cannot be added to WAF.

N/A

  • The wildcard domain name * can be added to WAF. When the domain name is set to *, only non-standard ports except 80 and 443 can be protected.
  • A protected object can only be added to WAF once.

    Each combination of a domain name and a non-standard port is counted towards the domain name quota of the WAF edition you are using. For example, www.example.com:8080 and www.example.com:8081 use two domain names of the quota. If you want to protect web services over multiple ports with the same domain name, add the domain name and each port to WAF.

ELB load balancer restrictions

--

Only dedicated ELB load balancers with Specifications set to Application load balancing (HTTP/HTTPS) can be used. Dedicated load balancers with Specifications set to Network load balancing (TCP/UDP) are not supported.

Only dedicated ELB load balancers can be used for dedicated WAF instances. For details, see Load Balancer Types.
NOTE:

Dedicated WAF instances issued before April 2023 cannot be used with dedicated network load balancers. If you use a dedicated network load balancer (TCP/UDP), ensure that your dedicated WAF instance has been upgraded to the latest version (issued after April 2023). For details, see Dedicated Engine Version Iteration.

Service edition restrictions

  • Only professional and enterprise editions support IPv6 protection, HTTP2, and load balancing algorithms.
  • Only System-generated policy can be selected for Policy.
  • Standard, professional and enterprise editions allow you to specify a custom policy for Policy.

Load balancer access is available only in the standard, professional, or enterprise edition.

--

Certificate restrictions

  • Only .pem certificates can be used in WAF.
  • Currently, certificates purchased in Huawei Cloud SCM can be pushed only to the default enterprise project. For other enterprise projects, SSL certificates pushed by SCM cannot be used.
  • Only accounts with the SCM Administrator and SCM FullAccess permissions can select SCM certificates.

--

  • Only .pem certificates can be used in WAF.
  • Currently, certificates purchased in Huawei Cloud SCM can be pushed only to the default enterprise project. For other enterprise projects, SSL certificates pushed by SCM cannot be used.
  • Only accounts with the SCM Administrator and SCM FullAccess permissions can select SCM certificates.

Protocol restrictions

  • WAF supports the WebSocket protocol, which is enabled by default.

    Only WebSocket requests can be forwarded. It is not supported during traffic detection.

  • HTTP/2 can be used only for access between the client and WAF on the condition that at least one origin server has HTTPS used for Client Protocol.
    • To make Server Configuration works, there must be at least one server configuration record with Client Protocol set to HTTPS.
    • HTTP/2 can work only when the client supports TLS 1.2 or earlier versions.

--

WAF supports the WebSocket protocol, which is enabled by default.

Only WebSocket requests can be forwarded. It is not supported during traffic detection.

Protection policy restrictions

A protected website domain name can use only one policy.

  • A protected website domain name can use only one policy.
  • The following protection rules are not supported: threat intelligence access control, anti-crawler, web tamper protection, information leakage prevention, scan protection, bot protection, and AI model check rules.
  • A protected website domain name can use only one policy.
  • The following protection rules are not supported: bot protection and AI model check rules.

Specification restrictions

After your website is connected to WAF, you can upload a file no larger than 1 GB each time.

After your website is connected to WAF, you can upload a file no larger than 1 GB each time.

After your website is connected to WAF, you can upload a file no larger than 1 GB each time.

Function Constraints

The advanced settings and protection rules vary depending on the access mode.

The advanced settings vary depending on the WAF access mode.

Table 2 Advanced setting restrictions

Function

Cloud CNAME

Cloud Load Balancer

Dedicated Mode

Configuring PCI DSS/3DS Compliance Check and TLS

Supported

This function is not supported. You can configure TLS on the ELB console. For details, see Configuring TLS Security Policies for Encrypted Communication.

Supported

Enabling the HTTP/2 Protocol

Supported by professional and enterprise editions

This function is not supported. ELB load balancer access uses an out-of-path detection architecture. WAF only performs out-of-path detection and cannot restore sessions or negotiate HTTP/2 with the client. Therefore, this function is not supported.

Supported

HTTP/2 is automatically enabled for dedicated WAF instances provisioned in May 2023 and later.

Configuring a Response Body Length in Logs

submit a service ticket to enable it

Configuring Request and Response Header Forwarding

Supported

This function is not supported. In this access mode, WAF checks traffic using an out-of-path method. Real packets are transmitted between the ELB load balancer and the origin server. WAF only receives traffic copies mirrored by the load balancer for check and has only read-only permissions. WAF does not have permission to modify the original traffic. So it cannot insert or delete any headers.

Supported

Modifying the Alarm Page

Supported

The Custom page template is supported, but the Redirection page template is not supported.

Supported

Stopping WAF from Inserting Cookie Fields

Supported

Supported

Supported

Enabling WAF IPv6 Protection

Supported by professional and enterprise editions

The cloud load balancer access mode and dedicated mode support IPv6 as long as the load balancers used for the dedicated mode and cloud load balancer access mode support IPv6.

Modifying the Load Balancing Algorithm

Supported

This function is not supported. With load balancer access, the ELB load balancer schedules traffic, and WAF does not participate in back-to-origin request forwarding. The load balancing module built in WAF cannot distribute traffic across origin servers. So you need to use the ELB load balancer to distribute requests across origin servers.

Supported

Enabling Cookie Security Attributes

Supported

This function is not supported. Cookies are written in response packets. With ELB load balancer access, WAF cannot modify the original response packets returned by the origin server or add the cookie security flag.

Supported

Modifying a Verification Code

submit a service ticket to enable it

Configuring a Custom Log Trace ID

submit a service ticket to enable it

This function is not supported. WAF needs to proactively insert a unique identifier into the request header as the trace ID. WAF load balancer access is deployed out of path. It is unable to modify packets. So, the trace ID cannot be inserted.

submit a service ticket to enable it

Configuring a Traffic Identifier for a Known Attack Source

Supported

Supported

Supported

Configuring a JA3/JA4 Fingerprint Tag

Not supported

This function is not supported. With load balancer access, the ELB load balancer schedules traffic, and WAF does not participate in back-to-origin request forwarding. The load balancing module built in WAF cannot distribute traffic across origin servers. So you need to use the ELB load balancer to distribute requests across origin servers.

Supported

Configuring a Timeout for Connections Between WAF and a Website Server

Supported by standard, professional, and enterprise editions

This function is not supported. When ELB is used for access, the timeout duration is controlled by the ELB listener and origin server. WAF does not hold the TCP connection of the client and cannot independently control the connection timeout threshold.

Supported

Enabling Break Protection to Protect Origin Servers

Supported by default, cannot be manually disabled or modified

This function is not supported. The ELB load balancer access is deployed in out-of-path mode. WAF cannot block traffic on the main connection, deliver custom responses, or execute break protection logic.

Supported (manual enabling, disabling, and modification)

Enabling Open Tracing

Supported

This function is not supported. Trace transparent transmission cannot be performed for links if ELB load balancer access is in use.

Supported

Supported protection rules vary depending on the WAF access mode.

Table 3 Protection rules restrictions

Function

Cloud CNAME

Cloud Load Balancer

Dedicated Mode

Configuring Basic Web Protection to Defend Against Common Web Attacks

Supported

Supported

Supported

Configuring CC Attack Protection Rules to Defend Against CC Attacks

Supported

Supported

Supported

Configuring an Intelligent Rate Limiting Protection Rule to Dynamically Defend Against CC Attacks

  • Supported by professional and enterprise editions
  • To use this function in other editions, submit a service ticket to enable it.

Not supported

Not supported

Configuring Custom Precise Protection Rules

Supported by standard, professional, and enterprise editions

Supported by standard, professional, and enterprise editions

Supported

Configuring Blacklist and Whitelist Rules to Block or Allow Specified IP Addresses

Supported by standard, professional, and enterprise editions

  • Supported by standard, professional, and enterprise editions
  • Not supported when the frontend protocol of the ELB listener is TCP, UDP or QUIC.

Supported

Configuring Geolocation Access Control Rules to Block or Allow Requests from Specific Locations

Supported by standard, professional, and enterprise editions

  • Supported by professional and enterprise editions
  • Not supported when the frontend protocol of the ELB listener is TCP, UDP or QUIC.

Supported

Configuring Threat Intelligence Access Control Rules to Block or Allow IP Addresses in a Specified IP Address Library

Supported by professional and enterprise editions

Not supported

Supported by dedicated WAF instances versions released after September 2022

Configuring Web Tamper Protection Rules to Prevent Static Web Pages from Being Tampered With

Supported by standard, professional, and enterprise editions

Not supported

Supported

Configuring Anti-Crawler Rules

  • Signature-based bot management: Supported by standard, professional, and enterprise editions
  • JavaScript-based bot management: Supported by professional and enterprise editions

Not supported

Supported

Configuring Information Leakage Prevention Rules to Protect Sensitive Information from Leakage

Supported by professional and enterprise editions

Not supported

Supported

Configuring a Global Protection Whitelist Rule to Ignore False Alarms

Supported

Supported

Supported

Configuring Data Masking Rules to Prevent Privacy Information Leakage

Supported by standard, professional, and enterprise editions

Supported by standard, professional, and enterprise editions

Supported

Configuring a Scanning Blocking Rule to Automatically Block Heavy-Traffic Attacks

Supported by professional and enterprise editions

Not supported

Supported

Configuring Bot Protection Rules to Defend Against Bot Behavior

You can submit a service ticket to enable this function.

Not supported

Not supported

Configuring AI Model Check Rules for Security and Compliance of LLM Applications

Supported by standard, professional, and enterprise editions

Not supported

Not supported

Creating a Reference Table to Configure Protection Metrics in Batches

Supported by standard, professional, and enterprise editions

Supported by standard, professional, and enterprise editions

Supported

Configuring a Known Attack Source Rule to Block Specific Visitors for a Specified Duration

Supported

Supported

Supported