Forum Discussion
Restrict inbound API calls using iRule
Dave,
The business is concerned about the back end Databases being hammered with spoofed API calls. They only want approved sources to be able to make these calls to the API Virtual Server. We initially thought to approach this by trying to restrict the calls using source IP address, but the external service providers (Mailgun, Twilio, etc) were not able to provide those and they advised against it anyway. So I started looking at maybe using static strings in the URI path that the service providers use to make calls to us and sapplying an iRule to the VS that will drop any inbound requests that dont specifically contain the defined URI path expressions. I am just not sure if this is the best approach, or if there were any way a potential attacker could circumvent this control. Obviously if they knew the string they could plug that in and launch an attack but the only ones who know the string are us and the SP. Its kind of like a password in that way.
Thanks.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com