Forum Discussion
john4665f5
Nimbostratus
May 14, 2013Restrict users from browsing directly to VIP.
Hello,
Is it possible to implement an iRule that will restrict access when browsing directly to the virtual server's IP address? For example, when a user browses to http://1.1.1.1 the traffic is...
Hamish
Cirrocumulus
May 14, 2013It's not foolproof, but you can check the host: header. A browser will by default put in there whatever was type din the URL for the host. So if they type http://1.1.1.1/ the host header will have host: 1.1.1.1
if { [HTTP::host] ne "mysite.domain.com" } {
drop
}
Or do whatever you like (e.g. redirect somewhere else 🙂
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