Forum Discussion
Kim_Scarborough
Nimbostratus
Dec 01, 2005iRule "domain" truncating
I've been using the iRule "domain" command in a variety of iRules. I've been having problems with it, and I finally figured out that it is truncating the last letter, for some reason. I created a spec...
Colin_Walker_12
Dec 02, 2005Historic F5 Account
That's interesting. It certainly appears as though you're using the command properly. I'll have to take a look and see if I'm seeing the same behavior. What version are you running?
In any event, I'd try this as a different solution for the time being:
when HTTP_REQUEST {
if { [HTTP::host] ends_with "example.com" } {
HTTP::respond 403 X-Domain [join [lrange [split [HTTP::host] "."] end-1 end] "."]
}
}
HTH,
-Colin
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