After you add a website to Web Application Firewall (WAF), you can enable the website tamper-proofing feature for the website. The feature helps you lock web pages that require protection, such as web pages that contain sensitive information. When a locked web page is requested, the page that is cached in WAF is returned. This way, malicious modification of web pages is prevented.
- Log on to the WAF console.
- In the top navigation bar, select the resource group and region to which the WAF instance belongs. The region can be Mainland China or International.
- In the left-side navigation pane, choose .
- In the upper part of the Website Protection page, select the domain name for which you want to configure a whitelist.
- Click the Web Security tab and find the Website Tamper-proofing section. Then, turn on Status and click Settings. Notice After the website tamper-proofing feature is enabled, all requests that are destined for your website are checked by the feature. You can configure a data security rule. This way, the requests that meet the specified conditions in the rule can bypass the check. For more information, see Configure a whitelist for Data Security.
- Create a website tamper-proofing rule.
By default, the rule is disabled after a website tamper-proofing rule is created. You can view the website tamper-proofing rule that you created in the rule list. The Protection Status switch of the rule is turned off.
- On the Website Tamper-proofing page, click Add Rule.
- In the Create Rule dialog box, configure the Service Name and URL parameters for the web page that you want to protect.
- Service Name: Specify the name of the service that is provided on the web page.
- URL: Specify the exact path of the web page. The path must start with
https://. Wildcard characters or parameters are not supported. For example, you cannot specify
/abc? xxx=. The feature protects text data, HTML pages, and images in the specified path.
- Click Confirm.
- Enable the rule. Find the rule that you want to enable in the rule list and turn on
Protection Status. If you request the specified web page after you enable the rule, the page that is cached in WAF is returned.
- Optional:Update cached data. Find the rule that is enabled in the rule list and click Refresh Cache in the Protection Status column. Notice If a protected web page is updated, click Refresh Cache to update the data that is cached in WAF. If you do not update the cached data when the protected page is updated, WAF returns the most recent page that is stored in the cache.