Forum Discussion
FFX2014_23725
Nimbostratus
Jul 17, 2014iRule to block HTTPS uri
I have a request from a customer to block a specific HTTPS uri. When the URI is hit, the connection is rejected and return a http 404 error.
URI:
https://aaaa.com/bbb/ccc.xml
I just wanted to con...
FFX2014_23725
Nimbostratus
Jul 17, 2014For this situation I do care about the host header since the link has both HTTP and HTTPS instance. We only want to block the HTTPS and still allow HTTP.
Is this correct?
when HTTP_REQUEST { if { [string tolower [HTTP::host]] starts_with "https://aaaa.com/bbb/ccc.xml" } { HTTP::respond 404 "Not Found" "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