Aubergine
Aubergine

Reputation: 6042

Restrict number of requests for particular mapping in Spring context

I am just unsure whether Spring has any mechanism preventing users/malicious bots from spamming for example registration request hundred times on my web app.

Does spring offer this kind of protection under the hood and if does not which direction I am to look? Some magical property in Spring Security?

Also does AWS provide any protection against this kind of brute attack when my application is deployed there?

Upvotes: 0

Views: 190

Answers (1)

Rob Lockwood-Blake
Rob Lockwood-Blake

Reputation: 5066

The short answer to both your questions is no. There is no built-in mechanisms in either Spring or Amazon Web services to prevent this.

You will likely have to provide your own implementation to prevent excessive access to your API.

There are a couple of useful resources that can help:

So in short there isn't really a simple ready-to-roll solution, but using the above resources should get you on the road to running something that ensures you're using the best practices possible to prevent malicious attempts to access your system.

Upvotes: 1

Related Questions