Enabling the WTP Edition
Before enabling WTP, you need to allocate a quota to a specified server. If the service is disabled or the server is deleted, the quota can be allocated to other servers.
The premium edition will be enabled when you enable WTP.
How WTP Prevents Web Page Tampering
Restrictions
The Windows firewall must be enabled when you enable protection for a Windows server. Do not disable the Windows firewall during the HSS in-service period.
Prerequisites
- On the Server Protection page of the WTP console, the Agent Status of the target server is Online, and the Protection Status of the server is Disabled.
- In the server list on the Servers & Quotas page of the HSS console, the Agent Status of the target server is Online, and the Protection Status of the server is Disabled.
- You have purchased sufficient quotas for the Web Tamper Protection edition in the selected region. For details, see Viewing Quota.
Setting Protected Directories
You can set:
- Directories
You can add a maximum of 50 protected directories to a host. For details, see Adding a Protected Directory or File System.
To record the running status of the server in real time, exclude the log files in the protected directory. You can grant high read and write permissions for log files to prevent attackers from viewing or tampering with the log files.
Enabling WTP
- Log in to the management console.
- In the upper left corner of the page, select a region, click
, and choose . Figure 1 Accessing HSS
- In the navigation pane, choose Web Tamper Protection > Server Protection. Click Enable in the Operation column of a server. Figure 2 Web Tamper Protection
The server list displays the protection status of only the following servers:- HUAWEI CLOUD servers purchased in the selected region
- Non-HUAWEI CLOUD servers that have been added to the selected region
- In the Enable WTP dialog box, allocate quotas to servers and click OK, as shown in Figure 3.
If your server runs the Linux OS, you can enable WTP. After WTP is enabled, you need to restart Tomcat for the configuration to take effect.
If you have not enabled WTP, you can enable it later on the Installation and Configuration page.
The quotas can be allocated in the following ways:- Select Select a quota randomly. to let the system allocate the quota with the longest remaining validity to the server.
- Select a quota to allocate.
- Enable protection for servers in batches. The system will automatically allocate quota to them.
- View the server status on the Web Tamper Protection page. The premium edition will be enabled when you enable WTP.
- Choose Web Tamper Protection, and click Server Protection. If the WTP Status of the target server is Enabled and the Edition/Expiration Date of it is Web Tamper Protection, the WTP edition is enabled.
- Choose , and click Servers. If the Protection Status of the target server is Enabled and the Edition/Expiration Date of it is Premium (included with WTP), the premium edition provided by the WTP edition is enabled free of charge.
- To enable WTP protection for a server, you can also choose Web Tamper Protection > Server Protection, click Details, and click Bind Server in the Operation column of a quota.
- A quota can be bound to a server to protect it, on condition that the agent on the server is online.
- Disable WTP before updating a website and enable it after the update is complete. Otherwise, the website will fail to be updated.
- Your website is not protected while WTP is disabled. Enable it immediately after updating your website.
Follow-Up Procedure
Disabling WTP
Choose Web Tamper Protection > Server Protection and click Disable in the Operation column of a server.
If WTP is disabled, its quota status will change from occupied to idle. You can allocate the idle quotas to other servers or unsubscribe the unnecessary quotas to avoid quota waste.
- Before disabling WTP, perform a comprehensive detection on the server, handle known risks, and record operation information to prevent O&M errors and attacks on the server.
- If WTP is disabled, web applications are more likely to be tampered with. Therefore, you need to delete important data on the server, stop important services on the server, and disconnect the server from the external network in a timely manner to avoid unnecessary losses caused by attacks on the server.
- After you or disable WTP, files in the protected directory are no longer protected. You are advised to process files in the protected directory before performing these operations.
- If you find some files missing after disabling WTP, search for them in the local or remote backup path.
- The premium edition will be disabled when you disable WTP.
Unbinding quota
To unbind a quota, choose Web Tamper Protection > Server Protection, click Details, and choose More > Unbind Quota in the Operation column of the quota. The quota status will change to Idle. HSS automatically disables WTP for servers associated with the quota.
You can allocate the idle quotas to other servers or unsubscribe the unnecessary quotas to prevent quota waste.
If you unsubscribe from a cloud server protected by WTP, the server will not be automatically unbound from the quota. You can manually unbind it. The server will be automatically unbound from the HSS quota 30 days after the Agent goes offline.
Last Article: Enabling the Basic/Enterprise/Premium Edition
Next Article: (Optional) Step 5: Switching the HSS Edition

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.