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...

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c05da5-55406.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c05da5-55406.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?