Forum Discussion
Twilleyj_94880
Sep 24, 2013Nimbostratus
iRule to reject a specific activesync DeviceId
I'd like to add an iRule to block a specific Activesync DeviceId (SamsungXYZ123)
Reason: This phone has been trying to auth approx 20,000 times per day for 11 months... (Ex-Employee)
Does this l...
What_Lies_Bene1
Sep 24, 2013Cirrostratus
Part of the iRule. It seems the HTTP header command is case insensitive about the header name but not it's value. If you ensure the string your matching against is lower case we can avoid doing the conversion to lower case twice. I've added some logging too which you can remove or comment out later;
when HTTP_REQUEST {
if { [string tolower [HTTP::header value "DeviceId"]] equals "samsungxyz123" } {
drop
log local0. "Dropped a request from [HTTP::header value "DeviceId"]"
}
}
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