Forum Discussion
orange_team
Nimbostratus
Dec 11, 2018Limit sessions on VS with courtesy page
Hi, i'm new in iRule developing and also a beginner in programming at all, I'm a sys-admin :-\
I need to implement an iRule that, when needed, could be applied on VS in front of login page.
We n...
jurgenvdmark_14
Nimbostratus
Dec 11, 2018you can use tables to count the amount of attempts within a given time frame. Set the timeframe to 1s for conn/s. (https://devcentral.f5.com/wiki/iRules.table.ashx)
with the table incr command you can easily increase the counter for every request to /login.aspx
You need to use the -notouch option to not update the timestamp when you increase the counter.
When you reach the limit you can redirect to a sorry page with HTTP::redirect command
Hope this helps
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects