Step 1. Log in to SonicWall Email Security and then go to Manage |Â Policy & Compliance | Filters | Inbound Add New Filter.
Step 2. Select following conditions in filter.
Enable This filterÂ
If "Any" of these conditions are met:
Select: RFC 822 Byte Scan.
Matching: Contains
Search value: a href=
Action : Store in Junk box.
Filter Name -Â Give any filter name but make sure its just alphanumeric
NOTE:Â Do not include any symbols in the filter name as it may lead to filter corruption , space can be added
Apply This Filter to : Everyone
Save this filter and now it should block any email containing hyperlink in body.
CAUTION:Â Enabling this filter will block all emails containing hyperlinks in the body irrespective of legitimate link or malicious link.
Â

NOTE:Â If the navigation or the screenshot looks different from the one mentioned above , you may be in an older firmware version and would require a firmware upgrade. Please refer the link below to upgrade the firmware to latest version.
 https://www.sonicwall.com/en-us/support/knowledge-base/170504270079039
Â