This document describes how to perform local testing before modifying DNS records to ensure the service availability.
DNS resolution is required when a local server accesses a website. Before DNS resolution, the IP address of the destination domain name will be obtained from the local hosts
file. Therefore, you can modify the hosts
file to direct local access traffic to WAF to test the connectivity between the website and WAF. This avoids direct modification of DNS records that may affect Internet users' access to the website.
saas.technicalsupport.cn
.ping <waf cname="" address="">
.hosts
file.C:\Windows\System32\drivers\etc\hosts
by adding the following entry.Note:Here,
1.1.1.1
is a test address, and it should be the VIP address in actual use.
/etc/hosts
by adding the following entry.http:// saas.technicalsupport.cn/?test=alert(123)
ii. If the browser returns a block page, the WAF is working properly.
Note:To view the block page, you can access the default WAF prompt.
After performing the local test, you can proceed as follows:
Was this page helpful?