Forum Discussion

Hussein_Ghazy's avatar
Hussein_Ghazy
Icon for Nimbostratus rankNimbostratus
Sep 01, 2015

Adding the Time to ASM Response Pages

Hi All,

 

I want to add the Time when a request was rejected.

 

Below is the default response page:

 

Request RejectedThe requested URL was rejected. Please consult with your administrator.

 

 

Your support ID is: <%TS.request.ID()%>

 

How i can add the time for the request rejected?

 

Regards

 

Hussein

 

2 Replies

  • Adding the actual precise time on the ASM at the time of violation is not that easy - requires replacement of the Blocking Response Page with an iRule. In most cases this is not necessary though - if a user is looking at the Blocking Page his/her current time is the time of the violation.

    If you just need to show the time on the page just copy paste this piece of JavaScript into your Blocking Response Page:

    
    

    Hope this helps,

    Sam

  • Adding the actual precise time on the ASM at the time of violation is not that easy - requires replacement of the Blocking Response Page with an iRule. In most cases this is not necessary though - if a user is looking at the Blocking Page his/her current time is the time of the violation.

    If you just need to show the time on the page just copy paste this piece of JavaScript into your Blocking Response Page:

    
    

    Hope this helps,

    Sam