Forum Discussion
yuanqiang_22112
Nimbostratus
Aug 30, 2017how to deny ip visit application
Hello:
I want to use ltm deny ip visit v_ip, only permit domain name. How to realize ?
Jad_Tabbara__J1
Cirrostratus
Sep 05, 2017Hello Yuanqiang,
It is better to check in your irule the FQDN and based on the FQDN drop or do nothing.
when HTTP_REQUEST {
if { ! ( [string tolower [HTTP::host]] eq "app.domain.com" ) } {
drop
log local0. "connection dropped from client for accessing [HTTP::host]"
}
}
By doing this, you prevent clients to connect via IP directly and also via other FQDN (if they changes their host file for example).
Hope it helps
Regards
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