I now have a website where some important content is captured in batches by other places and my content can be updated in real time. sometimes, the update speed is faster than loading and displaying normal pages. how can this problem be solved. PS: The content is mainly text and a small number of images, and the background is written in PHP. now I have a website where some important content is crawled in batches by other places.
In addition, I can update my content in real time. sometimes the update speed is faster than that of my normal page loading and display.
How can this problem be solved.
PS: The content is mainly text and a small number of images, which are written in PHP in the background
Reply content:
I now have a website where some important content is captured in batches by other places.
In addition, I can update my content in real time. sometimes the update speed is faster than that of my normal page loading and display.
How can this problem be solved.
PS: The content is mainly text and a small number of images, which are written in PHP in the background
Try nginx:
1. the ngx_http_limit_conn_module can be used to limit the number of connections of a single IP address.
Http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
2. the ngx_http_limit_req_module can be used to limit the number of requests from a single IP address per second.
Http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
3. nginx_limit_speed_module can be used to speed up IP addresses
Https://github.com/yaoweibin/nginx_limit_speed_module
Or use Nginx fail2ban module: http://www.fail2ban.org/wiki/index.php/Main_Page
In addition to the above, you can also use image/URL anti-Leech protection.