FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
gsharma
Staff
Staff
Article Id 298302
Description This article describes how to add a Timestamp to the Attack Block Page.
Scope FortiWeb, FortiWeb-VM.
Solution

To add a timestamp in the Attack block page, it is necessary to modify the replacement page code.

 

To do that, create a new replacement message (cannot modify the predefined) and then add code to it so it can show the timestamp on the block page.

 

Navigate to System -> Config -> Replacement Message.

 

Select Create New, give a name to this message, and select OK.

 

CNRM.PNG

 

After that, it will be possible to see the new Menu options below. Then Expand the Security Tab and select the Attack block page.


Attack.PNG

 

Add the highlighted code in the HTML code of the Attack block page as shown below:

 

code.PNG

 

It is possible to Copy/Paste the Below code in the HTML script as well.

 

<div id="current_date">

<script>
document.getElementById("current_date").innerHTML = Date();

</script>

</div>

 

Select Save. Call this replacement message in the Server Policy used for and select OK.

 

pol1.PNG

 

After making these changes, check the attack log page. It will have the Timestamp added to it.

 

result.PNG