Forum Discussion

avnishvyas_1974's avatar
avnishvyas_1974
Icon for Nimbostratus rankNimbostratus
Apr 17, 2015

Custom i-Rule needs further modifcation

Hello Experts   This is the scenario of what it is I am trying to achieve. We have URL contains a URI. We want to restrict some of the traffic by discarding requests if they do no match the criter...
  • kunjan_118660's avatar
    Apr 17, 2015

    How about this iRule

    when HTTP_REQUEST { 
        if { [HTTP::uri] contains "/services/playIQService/" } { 
          pool Pool_CCC_Posterscope 
        } else { 
          log local0. "[HTTP::uri] starts-with "/services/playIQService AND access URI = /restricted-URI/" 
          discard
        } 
    }