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.
kaman
Staff
Staff
Article Id 343128
Description This article describes the steps to personalizing the image of the Fortigate Default URL Block Page.
Scope FortiGate v7.0.0, v7.2.0, v7.4.0, v7.6.0.
Solution

FortiGate firewall allows users to customize Default URL Block Page Replacement Messages to enhance experience when encountering blocked content.

This article utilizes www.facebook.com as an example of a webpage to be blocked.

 

default-fb-block.png

 

To block Facebook in the Fortigate GUI:

  1. Navigate to Security Profiles -> Web Filter.
  2. Edit the Default Profile.
  3. Enable the URL Filter and create a new entry:

*URL: *facebook*
*Type: Wildcard
*Action: Block
*Status: Enable

 

static-url-block.png

 

 

Note: To enforce the block page, apply the modified Web Filter profile to the outbound firewall policy as below.

 

Capture.PNG

 


The Fortinet logo in the red circle will be replaced with an ABC logo.


Uploading Custom Images in FortiGate's GUI:

  1. Navigate to System -> Replacement Messages.
  2. In the top menu, select 'Manage Images'.

    manage-image.png   
  3. Select 'Create New'.
  4. Enter a name for the image.
  5. Select Upload Image, then browse and locate the desired image file.
                                                             

abc-image-replacement.png                   

  1. Select 'OK' to save the image. Now the file is visible in the image list.

     

Editing the HTTP URL Block Page Replacement Message:


To modify the HTTP URL Block Page with a custom image:

  1. Navigate to System -> Replacement Messages.
  2. Select 'URL Block Page' under 'HTTP' and select 'Edit'.
                                                        

url-block-page.png

 

  1. In the Message Format: section (text/html), locate the line:

    background: url(%%IMAGE:logo_v3_fguard_app%%) no-repeat left center

  2. Modify the image file name from the default 'logo_v3_fguard_app' to the name assigned to the uploaded custom image (for example 'abc').

    Note: The height of the image can also be modified in pixels based on specific requirements.
                                                                                       

    image-change.png                                             

    The left screen will provide a preview of the 'Web Page Blocked' message with the custom image once this adjustment is made.

     

  3. Select 'Save' to apply the modifications.

     

After saving the changes, visiting the blocked site will show the customized block page with the new image.

Expected Outcome:


abc-3.png