Technical Tip: Remove hyperlinks
Description
Â
This article describes how to remove all hyperlinks in any received email unless the URL matches the URL exempt list.
Â
Scope
Â
FortiMail.
Solution
From the GUI, go to Profile -> Content -> Content and create a new 'Content Profile'.
Â

Go to Content Disarm and Reconstruction, enable the 'HTML content', and set 'Remove' for the URL.

Â
Apply the new content profile to the recipient policy accordingly.
Â

Â
Go to Security -> Disarm & Reconstruction -> URL -> URL Removal -> Category and choose the URL filter profile 'all'.
Â

Â
Go to Security -> URL Filter -> Override Rating.
Â

Â
Create a new Override Rating. For this example, the URL www.fortinet.com is exempted as below.
Â
Â

Â
In the URL Category Profile 'all', make sure the category for 'local' is disabled to exclude this category from being removed.
Â

Â
Result:
All the URLs are removed except the URL https://www.fortinet.com/ because it is matched to the URL exempt list.
Â

Â

Â

FortiMail version 8.0.x:Â
Office File Metadata and HTML Hidden Content Handling feature is added.
GUI:

CLI:
The metadata-type-option can be configured and customized:
FML#config file content-disarm-reconstruct
FML(content-disarm~r) # set metadata-type-option
--- current value ---
metadata-type-option: office-template office-property office-version office-comment office-track-change office-field office-hidden-text office-footnote office-watermark 