Google Cloud reCAPTCHA Enterprise v1 API - Class FirewallAction (2.17.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 denies access to a given page. The user gets 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 injects 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 redirects 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 sets 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 transparently serves a different page to an offending user.

Property Value
Type Description
FirewallActionTypesSubstituteAction