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 so as to test the connectivity of the route to the website through WAF. This avoids direct modification of DNS resolution records that may affect Internet users' access to the website.
C:\Windows\System32\drivers\etc\hostsby adding the following entry.
/etc/hostsby adding the following entry.
(3) If the browser returns a blocked message, the WAF’s protection features are working properly.