FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
FrankY1
Staff
Staff
Article Id 291918
Description This article describes how to edit a disclaimer page after selecting the 'Yes, I agree' button, another web page can be presented automatically.
Scope FortiGate.
Solution

Pre-requisite:

The disclaimer page is configured on a FortiGate firewall policy:

Technical Tip: Configuring a disclaimer page on a FortiGate firewall policy

 

When the user is presented with a disclaimer page and selects the 'Yes, I agree' button, the administrator wants to present a new web page to the user. (Example: the organization's internal website).

This can be done by editing the source code of the disclaimer page.  

 

From GUI, Go to System -> Replacement Messages -> Extended View -> Authentication -> Disclaimer Page, 'double-click' or select 'Edit', and add the below code to the function sb(val): 

 

 if(val == '1'){
window.open("https://www.example.com");
}

 

Replace www.example.com to the desired website by the administrator. See the below screenshot:

 

disclaimer page.png

 

Clear existing sessions before testing this change. 

Contributors