Skip to main content
FrankY1
Staff
Staff
Jan 2, 2024 8:17 AM UTC

Technical Tip: Editing a disclaimer page to open another web page after selecting the 'Yes, I agree' button

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. 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024