How Do I Add a Domain Name/IP Address to WAF?
After you connect a domain name or IP address of the website you want to protect to WAF, WAF works as a reverse proxy between the client and the server. The real IP address of the server is hidden and only the IP address of WAF is visible to web visitors.
- Cloud mode: protects your web applications on HUAWEI CLOUD, other cloud platforms, or on-premises data centers through domain names.
- Dedicated or ELB mode: protects your web applications on HUAWEI CLOUD through domain names or IP addresses.
- You can enter a multi-level single domain name (for example, top-level domain name example.com or level-2 domain name www.example.com) or a wildcard domain name (*.example.com). The processes of connecting domain names to different WAF instance types are the same.
- If the server IP address of each subdomain name is the same, enter a wildcard domain name to be protected. For example, if the subdomain names a.example.com, b.example.com, and c.example.com have the same server IP address, you can add the wildcard domain name *.example.com to WAF to protect all three.
- If the server IP addresses of subdomain names are different, add subdomain names as single domain names one by one.
- A domain name cannot be added to WAF cloud mode repeatedly.
Each combination of a domain name and a 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.
For details, see Edition Differences.
Figure 1, Figure 2, and Figure 3 show the processes of connecting a domain name or IP address to WAF in different modes.
- To use the cloud mode, see Adding a Domain Name to WAF (Cloud Mode).
- To use the dedicated mode, see Adding a Website to WAF (Dedicated Mode).
- To use the ELB mode, see Adding a Website to WAF (ELB Mode).
- If Access Status for protected website is Inaccessible, the domain name or IP address fails to be connected to WAF. Rectify the fault by referring to Why Is the Access Status of a Domain Name or IP Address Inaccessible?
- If your website becomes inaccessible after it is connected to WAF, rectify the issue by referring to How Do I Troubleshoot 404/502/504 Errors?.



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.