Chapter 4 FortiOS Carrier : MMS Security features : MMS content-based Antispam protection : Configuring content-based antispam protection
  
Configuring content-based antispam protection
To apply content-based antispam protection - CLI
config webfilter content
edit <filter_table_number>
set name <filter_table_name>
config entries
edit <phrase or regexp you want to block>
set action {block | exempt}
set lang <phrase language>
set pattern-type {wildcard | regexp}
set score <phrase score>
set status {enable | disable}
end
end