Forum Discussion
Hi,
I know the original post here is about a month old but I have just set up our F5 to do just this. However we also have our iRule also restricting URIs based on a DataGroupList as below:
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $::MyValidUris] } {
HTTP::disable
} else {
HTTP::respond 404 content [subst $::block_page]
}
}
The problem I have is that once HTTP::disable is invoked, F5 can no longer parse the requests as HTTP and therefore cannot restrict URIs as before.
Is there anyway to re-enable the HTTP profile but selectively disable it when a websocket request comes through?
Imagine a web site like Amazon, that users can browse. At some point when they want to contact an agent via a "webphone", the site creates a websocket connection to the backend server. If when they want to carry on browsing the site and happen to change the URI on their browser go to an admin page, the iRule no longer restricts that URI. This is the problem I'm trying to work through. Any ideas on what I could do with my iRule would be greatly appreciated.
Thank you. Sachin