Forum Discussion

mikey_webb's avatar
Jan 06, 2015

LTM 11.4.1 rewrite profile

Previously was using Proxypass, however with firmware version 11.4.1 need to use rewrite profile which have now configured.

 

The rewrite profile successfully rewrites http://mysite.com/app1/ to a local server however what need help with is dropping the request if no values are included. For example from the site http://mysite.com/app1 a getimage is used with various values is added to the url and provided externally ie quality=xx, height=xx, type=xx what is required is to drop any traffic that does not pattern match all the values: quality=xx, height=xx, type=xx

 

2 Replies

  • a simple iRule like this may help. The string match command may help you out.

    when HTTP_REQUEST {        
        if { not ([string match "*quality=*height=*type=*" [string tolower [HTTP::uri]]]) {
             Reject the request
            reject
        }
    }