Forum Discussion
Fred_01
Nimbostratus
Mar 15, 2017filter acces with ip public on the url
Hello
I have a lot of Virtual Server configured on my F5 and I want to block acces on the website if the url contains the IP public.
as I have a lot of VS, I don't want a specific Irule on ...
Mar 15, 2017
Hi,
Here is a simple irule:
when HTTP_REQUEST {
if { [HTTP::host] == "1.1.1.1" }{
HTTP::redirect "http://www.website.com[HTTP::uri]"
}
}
If you want to create only one irule you need to create a data group with mappings between ip address and hostname of the vip.
Cheers,
Kees
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