After this function is enabled, WAF can defend against common web attacks, such as SQL injections, XSS, remote overflow vulnerabilities, file inclusions, Bash vulnerabilities, remote command execution, directory traversal, sensitive file access, and command/code injections. You can also enable other checks in basic web protection, such as web shell detection, deep inspection against evasion attacks, and header inspection.
Basic web protection has two modes: Block and Log only.
If you have enabled enterprise projects, ensure that you have all operation permissions for the project where your WAF instance locates. Then, you can select the project from the Enterprise Project drop-down list and configure protection policies for the domain names in the project.
A website has been added to WAF.
In the upper part of the page, set Protection Level to Low, Medium, or High. The default value is Medium.
Protection Level |
Description |
---|---|
Low |
WAF only blocks the requests with obvious attack signatures. If a large number of false alarms are reported, Low is recommended. |
Medium |
The default level is Medium, which meets a majority of web protection requirements. |
High |
At this level, WAF provides the finest granular protection and can intercept attacks with complex bypass features, such as Jolokia cyber attacks, common gateway interface (CGI) vulnerability detection, and Druid SQL injection attacks. To let WAF defend against more attacks but make minimum effect on normal requests, observe your workloads for a period of time first. Then, configure a global protection whitelist rule and select High. |
By default, General Check is enabled. You can enable other protection types by referring to Table 3.
Type |
Description |
---|---|
General Check |
Defends against attacks such as SQL injections, XSS, remote overflow vulnerabilities, file inclusions, Bash vulnerabilities, remote command execution, directory traversal, sensitive file access, and command/code injections. SQL injection attacks are mainly detected based on semantics. NOTE:
If you enable General Check, WAF checks your websites based on the built-in rules. |
Webshell Detection |
Protects against web shells from upload interface. NOTE:
If you enable Webshell Detection, WAF detects web page Trojan horses inserted through the upload interface. |
Deep Inspection |
Identifies and blocks evasion attacks, such as the ones that use homomorphic character obfuscation, command injection with deformed wildcard characters, UTF7, data URI scheme, and other techniques. NOTE:
If you enable Deep Inspection, WAF detects and defends against evasion attacks in depth. |
Header Inspection |
This function is disabled by default. When it is disabled, General Check will check some of the header fields, such as User-Agent, Content-type, Accept-Language, and Cookie. NOTE:
If you enable this function, WAF checks all header fields in the requests. |
If General Check is enabled and Mode is set to Block for your domain name, to verify WAF is protecting your website (www.example.com) against general check items:
If domain name www.example.com has been connected to WAF, perform the following steps to verify that WAF can block SQL injection attacks.
WAF blocks the access request. Figure 4 shows an example block page.