Forum Discussion

oz_109456's avatar
oz_109456
Icon for Nimbostratus rankNimbostratus
May 10, 2013

restrict access to https url

Need assistance to restrict access to a url which is mapped to an F5 virtual server.

 

Users are be able to access websites starting with "https://abc.abcxyz.com/csp/update.clsX" where X is any variable. If they change or type anything else before update.cls it should redirect back to "https://abc.abcxyz.com/csp/update.cls"

 

1 Reply

  • This should do it;

    
    when HTTP_REQUEST {
     if { not [HTTP::path] starts_with "/csp/update.cls" } {
     HTTP::redirect "https://abc.abcxyz.com/csp/update.cls"
     }
    }