Work with robot detection for forms


How to configure robot detection for an instance or a submit action.

Sitecore Forms helps you protect your forms from spambots to keep your contact lists healthy and eliminate unwanted traffic for your site. Robot detection is enabled by default.


To use robot detection with forms, you must install and enable xDB and xDB tracking. Robot detection must also be enabled, which it is by default. For additional information, see Robot detection overview and Visitor identification using the robot detection component.

If you are using a tool (such as DevTools or Fiddler) to resubmit a form (that is, to resend the request), the tracker treats all requests the same way. This means, for example, that if the original form submit was treated as human, when the form is resubmitted it will also be treated as human.

Robot detection for Sitecore Forms is enabled by default.

To enable or disable robot detection for each form field:

  • In the Forms designer, in the Form elements pane, on the Settings tab, select or clear the Robot detection enabled check box.

Robot detection enabled check box.


If you are having problems with robot detection, ensure that your layouts contain the VisitorIdentification tag: @Html.Sitecore().VisitorIdentification()

To disable robot detection for a Sitecore instance, for example, because you are running automated performance tests:

  • Go to: App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.config and change the following setting to false: <setting name="Analytics.AutoDetectBots" value="false"/>

In Sitecore Forms, submit buttons can have multiple submit actions. For the default submit actions that involve saving data, robot submission is disabled. For submit actions that do not involve saving data, such as Redirect to Page and Redirect to Url, robot submission is not blocked.

To enable or disable robot submission for submit actions:

  1. In the Content Editor, go to Settings/Forms/Submit Actions and click the submit action.

  2. In the Settings section, select or clear the Enable Robot Submission check box.