PHP website is attacked by traffic to visit a certain page or method all the time.

the website made by myself has been attacked by others to visit a certain page or a certain method to make the website run very slow. how can such an attack be effectively prevented? Is there any other way to upgrade the server? thank you

Jul.05,2022

just disable the attack source ip in the Apache or Nginx configuration file.

as in nginx.conf

http{

...

deny 1.2.3.4; -sharp  IP
deny 5.6.7.8; -sharp  IP

...

} 

has just made a similar one with ngx_lua, which can also be used for dynamic current limit. For speed limit
, please see openresty
https://moonbingbing.gitbooks...

.
Menu