Forum Discussion
Server_Team_146
Nimbostratus
Jul 25, 2014Verify Host Header and request URL match.
I need to verify that the host header associated with the url request matches. example: disgruntled employee wants to wipe out everything on our internal sharepoint. he modifies his host file to s...
Mohamed_Lrhazi
Altocumulus
Jul 25, 2014OK, so you simply want something like:
if {not ([string tolower [HTTP::host]] equals "www.example.com")} {
reject
}
or see this example that redirects based on strings found inside the Host header:
https://devcentral.f5.com/wiki/iRules.Universal_Host_Redirect.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
