Forum Discussion
yuanqiang_22112
Nimbostratus
Sep 28, 2018Domain name access only
Hi
LTM version 11.5.1, Please provide irules for domain name access application only .
Thankyou .
PeteWhite
Employee
Oct 08, 2018OK. I meant that you should replace with the FQDN that your application is using.
I guess you are asking for an iRule that stops any requests with an IP address as the Host header.
when HTTP_REQUEST {
if {[regexp {^(?:(\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))(?:\.((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))){3}$} [HTTP::host]]} {
reset
}
}
Note that regex is not very performant but this will check the host header against a regex for an IP address. You could consider using string match or the suggestion above by Stanislav if you know the domain that you want to use.
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