[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Recaptcha Enterprise V1 Client - Class FirewallAction (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.FirewallAction)\n- [2.1.2](/php/docs/reference/cloud-recaptcha-enterprise/2.1.2/V1.FirewallAction)\n- [2.0.1](/php/docs/reference/cloud-recaptcha-enterprise/2.0.1/V1.FirewallAction)\n- [1.17.2](/php/docs/reference/cloud-recaptcha-enterprise/1.17.2/V1.FirewallAction)\n- [1.16.1](/php/docs/reference/cloud-recaptcha-enterprise/1.16.1/V1.FirewallAction)\n- [1.15.0](/php/docs/reference/cloud-recaptcha-enterprise/1.15.0/V1.FirewallAction)\n- [1.14.0](/php/docs/reference/cloud-recaptcha-enterprise/1.14.0/V1.FirewallAction)\n- [1.13.0](/php/docs/reference/cloud-recaptcha-enterprise/1.13.0/V1.FirewallAction)\n- [1.12.2](/php/docs/reference/cloud-recaptcha-enterprise/1.12.2/V1.FirewallAction)\n- [1.8.0](/php/docs/reference/cloud-recaptcha-enterprise/1.8.0/V1.FirewallAction)\n- [1.7.0](/php/docs/reference/cloud-recaptcha-enterprise/1.7.0/V1.FirewallAction)\n- [1.6.0](/php/docs/reference/cloud-recaptcha-enterprise/1.6.0/V1.FirewallAction)\n- [1.5.2](/php/docs/reference/cloud-recaptcha-enterprise/1.5.2/V1.FirewallAction)\n- [1.4.2](/php/docs/reference/cloud-recaptcha-enterprise/1.4.2/V1.FirewallAction)\n- [1.3.2](/php/docs/reference/cloud-recaptcha-enterprise/1.3.2/V1.FirewallAction)\n- [1.2.6](/php/docs/reference/cloud-recaptcha-enterprise/1.2.6/V1.FirewallAction) \nReference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class FirewallAction.\n\nAn individual action. Each action represents what to do if a policy\nmatches.\n\nGenerated from protobuf message `google.cloud.recaptchaenterprise.v1.FirewallAction`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ RecaptchaEnterprise \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllow\n\nThe user request did not match any policy and should be allowed\naccess to the requested resource.\n\n### hasAllow\n\n### setAllow\n\nThe user request did not match any policy and should be allowed\naccess to the requested resource.\n\n### getBlock\n\nThis action denies access to a given page. The user gets an HTTP\nerror code.\n\n### hasBlock\n\n### setBlock\n\nThis action denies access to a given page. The user gets an HTTP\nerror code.\n\n### getIncludeRecaptchaScript\n\nThis action injects reCAPTCHA JavaScript code into the HTML page\nreturned by the site backend.\n\n### hasIncludeRecaptchaScript\n\n### setIncludeRecaptchaScript\n\nThis action injects reCAPTCHA JavaScript code into the HTML page\nreturned by the site backend.\n\n### getRedirect\n\nThis action redirects the request to a reCAPTCHA interstitial to\nattach a token.\n\n### hasRedirect\n\n### setRedirect\n\nThis action redirects the request to a reCAPTCHA interstitial to\nattach a token.\n\n### getSubstitute\n\nThis action transparently serves a different page to an offending\nuser.\n\n### hasSubstitute\n\n### setSubstitute\n\nThis action transparently serves a different page to an offending\nuser.\n\n### getSetHeader\n\nThis action sets a custom header but allow the request to continue\nto the customer backend.\n\n### hasSetHeader\n\n### setSetHeader\n\nThis action sets a custom header but allow the request to continue\nto the customer backend.\n\n### getFirewallActionOneof"]]