Forum Discussion
lorenze
Aug 11, 2020Altocumulus
Drop Traffic in F5
Hi, So we have this multiple cnames for our website and was wondering if its possible in f5 to drop traffic if its not equal to our www.site.com . So basically, we wanted to drop any traffic...
lorenze
Aug 11, 2020Altocumulus
also, how do I add another site to allow on this irule. This works by the way. Thank you!
- Aug 12, 2020
when HTTP_REQUEST { if { !([string tolower [HTTP::host]] equals "www.site.com" || [string tolower [HTTP::host]] equals "www.site2.com" || [string tolower [HTTP::host]] equals "www.site3.com") } { drop } }
or
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "www.site.com" - "www.site2.com" - "www.site3.com" { } default { drop } } }
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