Configuring a Biometrics Based Detection policy
Using Biometrics Based Detection policies, FortiADC can determine whether requests are generated by robots instead of a human by checking client events within a specified period. With JavaScript enabled on the client browser, FortiADC can collect behavioral biometrics (such as mouse movement, keyboard, screen touch, and scroll) and monitor as client events for a specified period. FortiADC can then determine whether the behavioral biometrics from the request is indicative of a bot or a human.
After you have configured Biometrics Based Detection policies, you can select them in WAF profiles.
Before you begin:
- You must have Read-Write permission for Security settings.
To configure a Biometrics Based Detection policy:
- Go to Web Application Firewall > Biometrics Based Detection.
- In the Biometrics Based Detection tab, click Create New to display the configuration editor.
- Configure the following Biometrics Based Detection settings:
Setting
Description
Name Specify a name for the Biometrics Based Detection rule. Valid characters are
A
-Z
,a
-z
,0
-9
,_
, and-
. No spaces.The configuration name cannot be edited once it has been saved.
Ignore JS Check Enable/disable to redirect to a warning page to enable JavaScript. This is disabled by default.
- Disable — FortiADC will check if JavaScript is enabled on the client browser. If JavaScript is not enabled, then FortiADC will redirect to a warning page to let the user enable JavaScript. If the client does not enable JavaScript within 10 seconds, the traffic may be recognized as a bad bot.
- Enable — FortiADC will not check if JavaScript is enabled on the client browser. If JavaScript is enabled on the client browser, events can be collected normally and FortiADC can determine if it is a bot or not. But if JavaScript is disabled on the client browser, the client will be recognized as a bot after the Event Collection Time, since events cannot be collected by FortiADC.
Monitor Client Events Select one or more client events to monitor:
- Mouse Movement
- Click
- Keyboard
- Screen Touch
- Scroll
By default, Mouse Movement, Click, and Keyboard are preselected. If the configuration is saved with no Monitor Client Events selected, it will default to the preselected client events.
Event Collection Time Specify for how long the events will be collected from the client. Default: 60 Range: 10-3600 seconds. Bot Effective Time Specify the time interval before FortiADC tests and verifies a bot again, once a bot has been detected. Default: 5 Range: 1-60 minute(s). JS Request URL Specify the URL to use to insert JavaScript code to the client machine. Default: /fadc_client/default_index.js
.Action Specify a WAF action object to apply when a bot is detected. See Configuring WAF Action objects.
The default action is alert.
Severity
Select the event severity to log when a bot is detected:
- High — Log as high severity events.
- Medium — Log as a medium severity events.
- Low — Log as low severity events.
The default is Low.
Exception Name
Select an exception configuration object. Exceptions identify specific hosts or URL patterns that are not subject to processing by this rule.
- Click Save.
Once the configuration is saved, the URL List becomes configurable. The Biometrics Based Detection policy will be applied to the request URLs in the URL List. - Under the URL List section, click Create New to display the configuration editor.
- Configure the following URL List settings:
Setting
Description
Host Status If enabled, require authorization only for the specified host. If disabled, ignore hostname in the HTTP request header and require authorization for requests with any Host header. Disabled by default. Host The Host option is available if Host Status is enabled.
Specify the HTTP Host header. If Host Status is enabled, the policy matches only if the Host header matches this value. Complete, exact matching is required. For example,
www.example.com
matcheswww.example.com
but notwww.example.com.hk
.Request URL The literal URL, such as /index.php
, or a regular expression, such as^/*.php
that the HTTP request must contain in order to match the rule. Multiple URLs are supported. - Click Save.
Once the URL List configuration is saved, you are returned to the Biometrics Based Detection configuration editor. - Click Save again to apply the newly created URL List configuration to the Biometrics Based Detection configuration.