Fortinet white logo
Fortinet white logo

CLI Reference

system replacemsg-image

system replacemsg-image

Use this command to add images that the FortiWeb HTML web pages can use. These pages are the ones that FortiWeb uses for blocking, authentication, and unavailable servers.

You cannot edit the images that FortiWeb provides by default.

To use this command, your administrator account’s access control profile must have either w or rw permission to the sysgrp area. For details, see Permissions.

Syntax

config system replacemsg-image

edit "<image_name>"

set image-type {gif | jpg | png | tiff}

set image-base64 <image_code>

end

Variable Description Default

"<image_name>"

Enter the name of the image to add. No default

image-type {gif | jpg | png | tiff}

Specify the image file format of the image to add. No default

image-base64 <image_code>

Enter the HTTP page return code as clear text, Base64-encoded.

Ensure the value has the following properties:

  • Its length is divisible by 4 (a rule of Base64 encoding)
  • It begins with characters that identify its format (for example, R0lGO for GIF, iVBORw0K for PNG)
  • The format matches the value of image-type
No default

system replacemsg-image

system replacemsg-image

Use this command to add images that the FortiWeb HTML web pages can use. These pages are the ones that FortiWeb uses for blocking, authentication, and unavailable servers.

You cannot edit the images that FortiWeb provides by default.

To use this command, your administrator account’s access control profile must have either w or rw permission to the sysgrp area. For details, see Permissions.

Syntax

config system replacemsg-image

edit "<image_name>"

set image-type {gif | jpg | png | tiff}

set image-base64 <image_code>

end

Variable Description Default

"<image_name>"

Enter the name of the image to add. No default

image-type {gif | jpg | png | tiff}

Specify the image file format of the image to add. No default

image-base64 <image_code>

Enter the HTTP page return code as clear text, Base64-encoded.

Ensure the value has the following properties:

  • Its length is divisible by 4 (a rule of Base64 encoding)
  • It begins with characters that identify its format (for example, R0lGO for GIF, iVBORw0K for PNG)
  • The format matches the value of image-type
No default