DDOS Attacks - Restful Web Services

Michael Henrique picture Michael Henrique · Jan 18, 2014 · Viewed 16.6k times · Source

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

Thanks.

Answer

Darrel Miller picture Darrel Miller · Jan 24, 2014

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.