Tell me in the form of code the best options for protection against DDOS and Flood attacks on Apache using PHP

  • one
    @Denis Pavlik, doing PHP DDoS protection is not a good practice. Look towards Fail2ban . - romeo
  • on PHP, the maximum that can be done is to monitor DDOS sources and prohibit access to other resources, but this is not effective - Ni55aN

1 answer 1

Put nginx, there will be less problems.

I have software that lays down apache, for all the time I searched for dos utilities I did not find any working for nginx.