Skip to main content
FrankY1
Staff
Staff
January 2, 2024

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. 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT