Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class FirewallAction.
An individual action. Each action represents what to do if a policy matches.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.FirewallAction
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ allow
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\AllowAction
The user request did not match any policy and should be allowed access to the requested resource.
↳ block
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\BlockAction
This action denies access to a given page. The user gets an HTTP error code.
↳ include_recaptcha_script
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\IncludeRecaptchaScriptAction
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
↳ redirect
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\RedirectAction
This action redirects the request to a reCAPTCHA interstitial to attach a token.
↳ substitute
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SubstituteAction
This action transparently serves a different page to an offending user.
↳ set_header
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SetHeaderAction
This action sets a custom header but allow the request to continue to the customer backend.
getAllow
The user request did not match any policy and should be allowed access to the requested resource.
hasAllow
setAllow
The user request did not match any policy and should be allowed access to the requested resource.
$this
getBlock
This action denies access to a given page. The user gets an HTTP error code.
hasBlock
setBlock
This action denies access to a given page. The user gets an HTTP error code.
$this
getIncludeRecaptchaScript
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
hasIncludeRecaptchaScript
setIncludeRecaptchaScript
This action injects reCAPTCHA JavaScript code into the HTML page returned by the site backend.
$this
getRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
hasRedirect
setRedirect
This action redirects the request to a reCAPTCHA interstitial to attach a token.
$this
getSubstitute
This action transparently serves a different page to an offending user.
hasSubstitute
setSubstitute
This action transparently serves a different page to an offending user.
$this
getSetHeader
This action sets a custom header but allow the request to continue to the customer backend.
hasSetHeader
setSetHeader
This action sets a custom header but allow the request to continue to the customer backend.
$this
getFirewallActionOneof
string