Chapter 3 Authentication for FortiOS 5.0 : Configuring authenticated access : Password policy : Maximum logon attempts and blackout period
  
Maximum logon attempts and blackout period
When you logon and fail to enter the correct password you could be a valid user, or a hacker attempting to gain access. For this reason, best practices dictate to limit the number of failed attempts to logon before a blackout period where you cannot logon.
To set a maximum of five failed authentication attempts before the blackout, using the following CLI command:
config user setting
set auth-invalid-max 5
end
To set the length of the blackout period to five minutes, or 300 seconds, once the maximum number of failed logon attempts has been reached, use the following CLI command:
config user setting
set auth-blackout-time 300
end