Forum Discussion
Valentine_96813
Nimbostratus
Nov 15, 2011Block Domain redirect
I have an instance where someone has created a derrogatory subdomain in external DNS and is redirecting to one of our production VSs. Is there a way to log/block redirects from a specific subdomain i...
George_Watkins_
Nov 15, 2011Historic F5 Account
Hi Valentine,
Something like this should do the trick:
when HTTP_REQUEST {
if { [HTTP::host] equals "somebaddomain.com" } {
send a TCP reset
reject
alternatively, redirect somewhere else
HTTP::redirect "http://www.somedomainyoufindentertaining.com"
}
} If there's a whole list of domains you want to apply this functionality to, you can create a datagroup holding the domains and potentially different actions for each of them.
-George
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