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 ...
Fred_01
Nimbostratus
Mar 15, 2017I make this irules and it's works
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] match]} {
clientside {
HTTP::respond 403 -version "1.1" content "Request RejectedYou are not authorized to access this page" noserver Connection Close
}
}
}
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