Forum Discussion

Joachim_Roessne's avatar
Joachim_Roessne
Icon for Nimbostratus rankNimbostratus
Feb 26, 2014

Query part in a custom blocking page

Hi all,

 

I'm new to irules and ASM at all so perhaps this is a stupid question... I need to create a custom blocking page that redirects to a certain URL. In the redirect URL i need the query part of the blocked request and the supportid as a new parameter. I can create a blocking page with a redirect URL in the ASM and there is also a variable for the supportid <%TS.request.ID()%>. But how can i also insert the query part of the original request? Is there also a variable for that ? Can this be done with an irule ?

 

Thanks in advance, Joachim

 

5 Replies

  • You'll probably want to use when ASM_REQUEST_VIOLATION and in your redirect you will want to include [HTTP::query [HTTP::uri]] for the query parameters.

     

    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      Sorry just [HTTP::query]. Can't edit since DC isn't really mobile friendly &128526;
  • You'll probably want to use when ASM_REQUEST_VIOLATION and in your redirect you will want to include [HTTP::query [HTTP::uri]] for the query parameters.

     

    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      Sorry just [HTTP::query]. Can't edit since DC isn't really mobile friendly &128526;