Skip to main content
Level 3
Aug 8, 2025 8:52 AM UTC
Solved

Limiting servlet calls so they cannot be summoned by Curl programs like postman

Greetings,

Recently we have had some issues with bad actors flooding our systems with calls in registration and rememberPass pages, the call we make for this processes to an external api goes through our java using servlets, and we were wondering, how can we stop flooding requests to our servlets through botting or other malicious means.

Filtering through domain does not seem very good since you can just fake that in the call.

 

Using cors does not seem ideal aswell since you can tamper with that header.

 

Maybe the cors header in dispatcher, some kind of check through the ResourceResolver?

We will appreciate any recommendation on how to deal with this issue

 

Best Regards,

Daniel

joerghoh
joerghohAccepted solution
Adobe Employee
Aug 16, 2025 8:58 AM UTC

And in case of AEM CS you can also use the Traffic Rules to ratelimit and/or block such requests. Check the documentation on Traffic Rules at https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/security/traffic-filter-rules-including-waf

3 replies

Lokesh_Vajrala
Community Advisor
Community Advisor
Aug 8, 2025 3:15 PM UTC

Hi @danielma63  

I believe adding the reCAPTCHA to the form would eliminate the spam and bot activity. You can also look at other alternatives - You can refer the documentation - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/edge-delivery/build-forms/universal-editor/recaptcha-forms 

 

Thanks,

Lokesh

Translate
MukeshYadav_
Community Advisor
Community Advisor
Aug 8, 2025 6:57 PM UTC

Hi @danielma63 ,

Apart from captcha there can be WAF rules and ModSecurity ennoblement can help preventing flooding , DoS, DDoS, etc
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/security/traffic-filter-and-waf-rules/overview

Thanks

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Aug 16, 2025 8:58 AM UTC

And in case of AEM CS you can also use the Traffic Rules to ratelimit and/or block such requests. Check the documentation on Traffic Rules at https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/security/traffic-filter-rules-including-waf

Translate