Skip to main content
Ahmed_Galal
Staff
Staff
Nov 27, 2024 9:39 AM UTC

Troubleshooting Tip: File Security Policy is not blocking large size files

  • Oct 14, 2026 12:12 PM UTC
  • 0 replies
  • 319 views
  • Translate All

Description

This article describes why, after configuring the FortiWeb feature 'File Security Policy' to block certain file types 'for example: exe' small size exe files 'ex:1 MB' are getting blocked however large exe files 'ex: 10 MB' PDFs are getting bypassed.

Scope

FortiWeb.

Solution

FortiWeb by default parses files up to 5MB and if the file's size exceeds this value, the connection will be bypassed. This issue can be fixed by increasing the antivirus buffer size to 10 MB (10240 KB).

config system antivirus
    set uncomp-size-limit 10240
end


In the screenshot below, the file size limit is set to 100MB (102400 KB):

File security.png

 

The maximum acceptable values are:

  • 102400 KB (100 MB) : FortiWeb 100D, 100E, 100F, 400C, 400D, 400E, 400F, 600D, 600E, 600F, 1000C, 3000CFsx, 4000C.

  • 204800 KB (200 MB) : FortiWeb 1000D, 2000D, 3000D, 3000DFsx, 4000D, 1000E, 2000E, 3010E, 1000F, 2000F.

  • 358400 KB (350 MB): FortiWeb 3000E, 4000E, 3000F, 4000F.

Note: This buffer is not for antivirus only; it is for both antivirus and File Security.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024