tencent cloud

All product documents
Web Application Firewall
WAF Working with API Gateway
Last updated: 2023-12-29 14:53:05
WAF Working with API Gateway
Last updated: 2023-12-29 14:53:05
This document describes how to configure WAF to protect APIs on API Gateway.

Prerequisite

You have activated WAF.
You have published an API on API Gateway as instructed in Getting Started.

Directions

Step 1. Bind a custom domain name in the API Gateway console

For more information about how to bind a custom domain name in the API Gateway console, see Configuring a Custom Domain Name .
Note
When a custom domain name is bound to API Gateway, the system will check whether you have configured CNAME and resolved it to the service subdomain name. Therefore, you need to configure CNAME and resolve the custom domain name to the subdomain name of API Gateway, modify the DNS record, and point the custom domain name to the WAF CNAME domain name.

Step 2. Configure WAF

1. Log in to the WAF console and select Connection Management on the left sidebar.
2. On the page that appears, click Add domain name.


3. Configure required parameters and click OK.


4. The domain name should now be in the No CNAME records added status.



Step 3. Modify the CNAME record

1. Modify the CNAME record at your DNS service provider and resolve the custom domain name to the WAF domain name.
2. Log in to the WAF console, select Connection Management on the left sidebar and then the Domain names tab.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon