Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sam0081's avatar

How to prevent DDos attack

how to prevent DDos attack. any one know..?

0 likes
4 replies
Web Confection's avatar

Throttling is an obvious method, sure there are more. You need to google your options.

sam0081's avatar

@CJJ :- do you know how to use throttling for route group.. i already use this for login.

thanks

ejdelmonico's avatar
Level 53

Laravel has throttling out of the box for auth. To answer your question, you can't stop DDOS attacks. All you can do is handle it so I would recommend Cloudflare. They do a great job with handling attacks. Throttling Apache or Nginx will not stop the effects of the attack.

1 like

Please or to participate in this conversation.