public static class HumanInteractionChallenge.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HumanInteractionChallenge.Builder |
action(HumanInteractionChallenge.Action action)
The action to take against requests from detected bots.
|
HumanInteractionChallenge.Builder |
actionExpirationInSeconds(Integer actionExpirationInSeconds)
The number of seconds between challenges for the same IP address.
|
HumanInteractionChallenge |
build() |
HumanInteractionChallenge.Builder |
challengeSettings(BlockChallengeSettings challengeSettings) |
HumanInteractionChallenge.Builder |
copy(HumanInteractionChallenge model) |
HumanInteractionChallenge.Builder |
failureThreshold(Integer failureThreshold)
The number of failed requests before taking action.
|
HumanInteractionChallenge.Builder |
failureThresholdExpirationInSeconds(Integer failureThresholdExpirationInSeconds)
The number of seconds before the failure threshold resets.
|
HumanInteractionChallenge.Builder |
interactionThreshold(Integer interactionThreshold)
The number of interactions required to pass the challenge.
|
HumanInteractionChallenge.Builder |
isEnabled(Boolean isEnabled)
Enables or disables the human interaction challenge Web Application Firewall feature.
|
HumanInteractionChallenge.Builder |
isNatEnabled(Boolean isNatEnabled)
When enabled, the user is identified not only by the IP address but also by an unique
additional hash, which prevents blocking visitors with shared IP addresses.
|
HumanInteractionChallenge.Builder |
recordingPeriodInSeconds(Integer recordingPeriodInSeconds)
The number of seconds to record the interactions from the user.
|
HumanInteractionChallenge.Builder |
setHttpHeader(Header setHttpHeader)
Adds an additional HTTP header to requests that fail the challenge before being passed to
the origin.
|
public HumanInteractionChallenge.Builder isEnabled(Boolean isEnabled)
Enables or disables the human interaction challenge Web Application Firewall feature.
isEnabled
- the value to setpublic HumanInteractionChallenge.Builder action(HumanInteractionChallenge.Action action)
The action to take against requests from detected bots. If unspecified, defaults to
DETECT
.
action
- the value to setpublic HumanInteractionChallenge.Builder failureThreshold(Integer failureThreshold)
The number of failed requests before taking action. If unspecified, defaults to 10
.
failureThreshold
- the value to setpublic HumanInteractionChallenge.Builder actionExpirationInSeconds(Integer actionExpirationInSeconds)
The number of seconds between challenges for the same IP address. If unspecified,
defaults to 60
.
actionExpirationInSeconds
- the value to setpublic HumanInteractionChallenge.Builder failureThresholdExpirationInSeconds(Integer failureThresholdExpirationInSeconds)
The number of seconds before the failure threshold resets. If unspecified, defaults to
60
.
failureThresholdExpirationInSeconds
- the value to setpublic HumanInteractionChallenge.Builder interactionThreshold(Integer interactionThreshold)
The number of interactions required to pass the challenge. If unspecified, defaults to
3
.
interactionThreshold
- the value to setpublic HumanInteractionChallenge.Builder recordingPeriodInSeconds(Integer recordingPeriodInSeconds)
The number of seconds to record the interactions from the user. If unspecified, defaults
to 15
.
recordingPeriodInSeconds
- the value to setpublic HumanInteractionChallenge.Builder setHttpHeader(Header setHttpHeader)
Adds an additional HTTP header to requests that fail the challenge before being passed to
the origin. Only applicable when the action
is set to DETECT
.
setHttpHeader
- the value to setpublic HumanInteractionChallenge.Builder challengeSettings(BlockChallengeSettings challengeSettings)
public HumanInteractionChallenge.Builder isNatEnabled(Boolean isNatEnabled)
When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses.
isNatEnabled
- the value to setpublic HumanInteractionChallenge build()
public HumanInteractionChallenge.Builder copy(HumanInteractionChallenge model)
Copyright © 2016–2024. All rights reserved.