Google Cloud reCAPTCHA Enterprise v1 API - Class FirewallAction (2.13.0)

public sealed class FirewallAction : IMessage<FirewallAction>, IEquatable<FirewallAction>, IDeepCloneable<FirewallAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class FirewallAction.

An individual action. Each action represents what to do if a policy matches.

Inheritance

object > FirewallAction

Namespace

Google.Cloud.RecaptchaEnterprise.V1

Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

Constructors

FirewallAction()

public FirewallAction()

FirewallAction(FirewallAction)

public FirewallAction(FirewallAction other)
Parameter
Name Description
other FirewallAction

Properties

Allow

public FirewallAction.Types.AllowAction Allow { get; set; }

The user request did not match any policy and should be allowed access to the requested resource.

Property Value
Type Description
FirewallActionTypesAllowAction

Block

public FirewallAction.Types.BlockAction Block { get; set; }

This action will deny access to a given page. The user will get an HTTP error code.

Property Value
Type Description
FirewallActionTypesBlockAction

FirewallActionOneofCase

public FirewallAction.FirewallActionOneofOneofCase FirewallActionOneofCase { get; }
Property Value
Type Description
FirewallActionFirewallActionOneofOneofCase

IncludeRecaptchaScript

public FirewallAction.Types.IncludeRecaptchaScriptAction IncludeRecaptchaScript { get; set; }

This action will inject reCAPTCHA JavaScript code into the HTML page returned by the site backend.

Property Value
Type Description
FirewallActionTypesIncludeRecaptchaScriptAction

Redirect

public FirewallAction.Types.RedirectAction Redirect { get; set; }

This action will redirect the request to a ReCaptcha interstitial to attach a token.

Property Value
Type Description
FirewallActionTypesRedirectAction

SetHeader

public FirewallAction.Types.SetHeaderAction SetHeader { get; set; }

This action will set a custom header but allow the request to continue to the customer backend.

Property Value
Type Description
FirewallActionTypesSetHeaderAction

Substitute

public FirewallAction.Types.SubstituteAction Substitute { get; set; }

This action will transparently serve a different page to an offending user.

Property Value
Type Description
FirewallActionTypesSubstituteAction