Class JsChallenge
The JavaScript challenge settings. JavaScript Challenge is the function to filter abnormal or malicious bots and allow access to real clients.
Inherited Members
Namespace: Oci.WaasService.Models
Assembly: OCI.DotNetSDK.Waas.dll
Syntax
public class JsChallenge
Properties
Action
Declaration
[JsonProperty(PropertyName = "action")]
[JsonConverter(typeof(ResponseEnumConverter))]
public JsChallenge.ActionEnum? Action { get; set; }
Property Value
Type | Description |
---|---|
JsChallenge.ActionEnum? | The action to take against requests from detected bots. If unspecified, defaults to |
ActionExpirationInSeconds
Declaration
[JsonProperty(PropertyName = "actionExpirationInSeconds")]
public int? ActionExpirationInSeconds { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of seconds between challenges from the same IP address. If unspecified, defaults to |
AreRedirectsChallenged
Declaration
[JsonProperty(PropertyName = "areRedirectsChallenged")]
public bool? AreRedirectsChallenged { get; set; }
Property Value
Type | Description |
---|---|
bool? | When enabled, redirect responses from the origin will also be challenged. This will change HTTP 301/302 responses from origin to HTTP 200 with an HTML body containing JavaScript page redirection. |
ChallengeSettings
Declaration
[JsonProperty(PropertyName = "challengeSettings")]
public BlockChallengeSettings ChallengeSettings { get; set; }
Property Value
Type | Description |
---|---|
BlockChallengeSettings |
Criteria
Declaration
[JsonProperty(PropertyName = "criteria")]
public List<AccessRuleCriteria> Criteria { get; set; }
Property Value
Type | Description |
---|---|
List<AccessRuleCriteria> | When defined, the JavaScript Challenge would be applied only for the requests that matched all the listed conditions. |
FailureThreshold
Declaration
[JsonProperty(PropertyName = "failureThreshold")]
public int? FailureThreshold { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of failed requests before taking action. If unspecified, defaults to |
IsEnabled
Declaration
[Required(ErrorMessage = "IsEnabled is required.")]
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Enables or disables the JavaScript challenge Web Application Firewall feature. |
Remarks
Required
IsNatEnabled
Declaration
[JsonProperty(PropertyName = "isNatEnabled")]
public bool? IsNatEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | 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. |
SetHttpHeader
Declaration
[JsonProperty(PropertyName = "setHttpHeader")]
public Header SetHttpHeader { get; set; }
Property Value
Type | Description |
---|---|
Header | Adds an additional HTTP header to requests that fail the challenge before being passed to the origin. Only applicable when the |