Fortinet white logo
Fortinet white logo

CLI Reference

system replacemsg-custom-header

system replacemsg-custom-header

Use this command to include custom headers in block responses. This enables integration with downstream systems, improves observability, preserves user identity context, and aligns responses with enterprise security and application requirements.

These headers are included in the HTTP response and are intended for downstream clients and intermediary devices. They are not visible to end users in the rendered HTML content of the replacement message.

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-custom-header

edit system replacemsg-custom-header

config header-insert

edit <id>

set header-name <string>

set header-value <string>

next

end

nex

end

Variable Description Default

<header_group_name>

The name of the header group No default

<id>

Specify the id of the header group. No default

header-name <string>

Enter the name of the header to insert.

No default

header-value <string>

Enter the value of the header to insert.

No default

system replacemsg-custom-header

system replacemsg-custom-header

Use this command to include custom headers in block responses. This enables integration with downstream systems, improves observability, preserves user identity context, and aligns responses with enterprise security and application requirements.

These headers are included in the HTTP response and are intended for downstream clients and intermediary devices. They are not visible to end users in the rendered HTML content of the replacement message.

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-custom-header

edit system replacemsg-custom-header

config header-insert

edit <id>

set header-name <string>

set header-value <string>

next

end

nex

end

Variable Description Default

<header_group_name>

The name of the header group No default

<id>

Specify the id of the header group. No default

header-name <string>

Enter the name of the header to insert.

No default

header-value <string>

Enter the value of the header to insert.

No default