Chapter 15 Security Profiles : Web filter : Configuring Web Filter Profiles : Configure Proxy Options : Configuring the feature in the CLI
  
Configuring the feature in the CLI
To configure this option in the CLI, the URL filter must refer to a web-proxy profile that is using the Modifying HTTP Request Headers feature. The command is only visible when the action for the entry in the URL filter is set to either allow or monitor.
1. Configure the proxy options:
config web-proxy profile
edit "googleproxy"
config headers
edit 1
set name "X-GoogApps-Allowed-Domains"
set content "fortinet.com, Ladan.ca"
end
end
end
end
2. Set a web filter profile to use the proxy options
config webfilter urlfilter
edit 1
config entries
edit "*.google.com"
set type wildcard
set action {allow | monitor}
set web-proxy-profile <profile>
end
end
end
end
In the CLI, you can also add, modify, and remove header fields in HTTP request when scanning web traffic in proxy-mode. If a header field exists when your FortiGate receives the request, its content will be modified based on the configurations in the URL filter.