Forum Discussion
eroach5
Nimbostratus
Mar 08, 2018APM rule or access profile to block traffic from Apple devices via HTTP Header filters.
Hello,
Moving from Microsoft TMG to F5 APM. F5 software version 11.6.1. Been crawling the F5 support site and web to find a way to block MAC's (OS X) from using Exchange free / busy app.
On the ...
youssef1
Cumulonimbus
Aug 19, 2018Hi,
as defined here: https://developers.whatismybrowser.com/useragents/explore/operating_system_name/mac-os-x/
mac os user agent seems to (don't take care about version):
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
when HTTP_REQUEST {
set useragent [HTTP::header value User-Agent]
set tolower_useragent [string tolower [HTTP::header value User-Agent]]
if {$useragent contains "Mac OS X" or $tolower_useragent contains "mac os x"} {
log local0. "User Agent Info: $useragent - $tolower_useragent"
reject
}
}
If it'w not working can you test the following irule (with regex for blank space):
when HTTP_REQUEST {
set useragent [HTTP::header value User-Agent]
if {$useragent matches_regex {.*(?i)mac.os.x.*} } {
log local0. "User Agent Info: $useragent"
reject
}
}
Hope it help you, keep me in touch if it's working.
regards
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