Solution for traffic limit exceeded caused by heavy access to files such as pdf, mp4, zip, rar, and jpg.
Published: 2024-07-26
1. Phenomenon
Website traffic usage suddenly surges by tens or hundreds of times, and visits also increase significantly. Single-day traffic usage reaches tens or hundreds of GB, causing the virtual host to be suspended due to excessive traffic. It may be AI robots frantically scraping.
As shown below:

2. Analysis
After analyzing the Access Statistics Report , it is mainly that one or several large files are accessed in large volumes, resulting in a sudden traffic surge, as shown below:


As shown in the pictures above, generally a large file such as pdf, mp4, zip, rar, jpg, etc. is accessed in large volumes by different IPs.
After analyzing the web logs, the IPs that generally come to visit are all in the same C segment or a single IP address. The reason behind this may be that a competitor uses tools to consume normal traffic, causing the website traffic to be exhausted. Or other similar reasons.
As shown below:


3. Solutions
For a computer, accesses come from different IPs and cannot be judged as abnormal.
However, through manual analysis, this explosive type of access is obviously abnormal and can be solved through the following three solutions:
1. First analyze whether accesses are from the same IP or IP segment. If so, you can use the "Request Limit" function provided by the virtual host to block these IPs from accessing. However, if visitors change IPs, you need to promptly find new IPs to block. As shown below:


2. A more thorough solution: upgrade to our cloud server. Cloud servers are billed by bandwidth with unlimited traffic. The website will not be suspended due to excessive traffic.
On this basis, you can also use functions such as security groups to block access from abnormal IP segments.
3. If these large mp3, rar, etc. files are not necessary, you can also delete or rename them, or provide download only to logged-in users, etc., to hide the real addresses of large files and avoid exposing the file addresses.
Related link: Troubleshooting Website Traffic Over Limit
