Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DDOS Attacks - Restful Web Services

Could you please list some strategies or even approaches you have already applied to prevent/protect/minimize DDOS attacks upon Restful Web Services?

Thanks.

like image 274
Michael Henrique Avatar asked Jan 18 '14 00:01

Michael Henrique


Video Answer


1 Answers

Put a HTTP cache like Squid or Varnish in front of your API and put a small max-age header on any resource that you are concerned about. Even having a max-age of 1 second will prevent your API from being hit more than once per second for that resource.

like image 93
Darrel Miller Avatar answered Oct 29 '22 22:10

Darrel Miller