Fortinet white logo
Fortinet white logo

CLI Reference

antispam image-analysis

antispam image-analysis

Use this command to configure thresholds for image analysis scans.

When you configure a content profile, you can choose to scan images in the email body and attachments. You can fine-tune the file size that the FortiMail system will scan, and how these images are detected. Separate thresholds exists for each category of images that you may want to block, such as violence or adult images.

Syntax

config antispam image-analysis

set status {enable | disable}

set max-size <limit_int>

set min-size <limit_int>

set category {...}

set score-threshold-alcohol <score_int>

set score-threshold-credit-card <score_int>

set score-threshold-document <score_int>

set score-threshold-drug <score_int>

set score-threshold-extremism <score_int>

set score-threshold-gambling <score_int>

set score-threshold-gore <score_int>

set score-threshold-id <score_int>

set score-threshold-lingerie-swimsuit <score_int>

set score-threshold-medical <score_int>

set score-threshold-porn <score_int>

set score-threshold-qr-code <score_int>

set score-threshold-schematic <score_int>

set score-threshold-weapon <score_int>

end

Variable

Description

Default

category {...}

Select which categories of images to identify:

  • alcohol

  • credit-card

  • document — Text rendered as an image.

  • drug

  • extremism

  • gambling

  • gore — Graphic violence.

  • id — Driver licenses, passports, and other identifying documents that typically include personally identifiable information (PII). PII is regulated by law in some jurisdictions.

  • lingerie-swimsuit

  • medical — Hospital and doctor records. Medical information is regulated by law in some jurisdictions.

  • porn

  • qr-code

  • schematic

  • weapon

Alternatively, you can select the categories in an image classification profile instead.

alcohol drug extremism gambling gore porn lingerie-swimsuit weapon credit-card document id medical qr-code schematic

max-size <limit_int>

Enter the maximum image size to analyze in kilobytes (KB). Valid range is 1 to 50000.

Note

For a balance of fast throughput and good catch rate, use a minimum image file size that is more than small icons and email signatures, and a maximum image file size that is more than most spam and disallowed images.

500

min-size <limit_int>

Enter the minimum image size to analyze in kilobytes (KB). Valid range is 1 to 1000.

10

score-threshold-alcohol <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-credit-card <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-document <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-drug <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-extremism <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-gambling <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-gore <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-id <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-lingerie-swimsuit <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-medical <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-porn <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-qr-code <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-schematic <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-weapon <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

status {enable | disable}

Enable or disable image analysis.

enable

Related topics

profile content

profile image-classification

antispam image-analysis

antispam image-analysis

Use this command to configure thresholds for image analysis scans.

When you configure a content profile, you can choose to scan images in the email body and attachments. You can fine-tune the file size that the FortiMail system will scan, and how these images are detected. Separate thresholds exists for each category of images that you may want to block, such as violence or adult images.

Syntax

config antispam image-analysis

set status {enable | disable}

set max-size <limit_int>

set min-size <limit_int>

set category {...}

set score-threshold-alcohol <score_int>

set score-threshold-credit-card <score_int>

set score-threshold-document <score_int>

set score-threshold-drug <score_int>

set score-threshold-extremism <score_int>

set score-threshold-gambling <score_int>

set score-threshold-gore <score_int>

set score-threshold-id <score_int>

set score-threshold-lingerie-swimsuit <score_int>

set score-threshold-medical <score_int>

set score-threshold-porn <score_int>

set score-threshold-qr-code <score_int>

set score-threshold-schematic <score_int>

set score-threshold-weapon <score_int>

end

Variable

Description

Default

category {...}

Select which categories of images to identify:

  • alcohol

  • credit-card

  • document — Text rendered as an image.

  • drug

  • extremism

  • gambling

  • gore — Graphic violence.

  • id — Driver licenses, passports, and other identifying documents that typically include personally identifiable information (PII). PII is regulated by law in some jurisdictions.

  • lingerie-swimsuit

  • medical — Hospital and doctor records. Medical information is regulated by law in some jurisdictions.

  • porn

  • qr-code

  • schematic

  • weapon

Alternatively, you can select the categories in an image classification profile instead.

alcohol drug extremism gambling gore porn lingerie-swimsuit weapon credit-card document id medical qr-code schematic

max-size <limit_int>

Enter the maximum image size to analyze in kilobytes (KB). Valid range is 1 to 50000.

Note

For a balance of fast throughput and good catch rate, use a minimum image file size that is more than small icons and email signatures, and a maximum image file size that is more than most spam and disallowed images.

500

min-size <limit_int>

Enter the minimum image size to analyze in kilobytes (KB). Valid range is 1 to 1000.

10

score-threshold-alcohol <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-credit-card <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-document <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-drug <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-extremism <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-gambling <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-gore <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-id <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-lingerie-swimsuit <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-medical <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-porn <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-qr-code <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-schematic <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold-weapon <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

score-threshold <score_int>

Enter the score threshold. Valid range is 0 to 1000.

900

status {enable | disable}

Enable or disable image analysis.

enable

Related topics

profile content

profile image-classification