Chapter 1 What’s New for FortiOS 5.2.1 : Security Profiles : Web Filtering : Referer Added to URL Filtering
  
Referer Added to URL Filtering
You can now add a referer to URL filters. If a referer is specified, the host name in the referer field of the HTTP require will be compared for any entry that contains the matching URL. If the referer matches, then the specified action will be performed by proxy.
The referer can also be set in the web-based manager, but only if advanced web filter features has been enabled using the following command:
config system global
set gui-webfilter-advanced enable
end
After this command is used, a new column will be created in Security Profiles > Web Filter > Static URL Filter to set the referer.
The command set referrer-host has been added to the CLI. The CLI has also changed so that URL filters are now identified by their IDs, and the URL values can be set under each entry.
Syntax
config webfilter urlfilter
edit <ID>
config entries
edit 1
set url <url>
set referrer-host <url>
set type {simple | regex | wildcard}
set action {block | allow | monitor | exempt}
set status {enable | disable}
end
end
end
end