Forum Discussion

FAJUMO's avatar
FAJUMO
Icon for Cirrus rankCirrus
Sep 13, 2021

whitelist URL

I have a VS, accessed externally, required is for all access to the VS blocked except the whitelisted URL in the datagroup.

Need an irule to achieve this

2 Replies

  • oguzy's avatar
    oguzy
    Icon for Cirrostratus rankCirrostratus

    Hi Fajumo,

    You can try the floowing:

    when HTTP_REQUEST {
      if { not ([ class match [HTTP::uri] contains your_datagroup_name]) } {
        drop
      }
    }
    • FAJUMO's avatar
      FAJUMO
      Icon for Cirrus rankCirrus

      Hello Oguzy,

      I have applied it and asked them to test.

      Will update you on the outcome.

      Thanks so much