Functionality cookie · Google reCAPTCHA

_GRECAPTCHA Cookie: What It Is, Who Sets It, and Consent Rules

Last verified 2026-10-17 · Updated 2026-10-17

On this page
  1. What the _GRECAPTCHA cookie does
  2. Who sets the _GRECAPTCHA cookie
  3. Does the _GRECAPTCHA cookie need consent?
  4. How to block the _GRECAPTCHA cookie
  5. How long the _GRECAPTCHA cookie lasts
  6. Scripts and requests of Google reCAPTCHA
  7. Changes to the _GRECAPTCHA cookie
  8. _GRECAPTCHA cookie FAQs

What the _GRECAPTCHA Cookie Does on Your Site

The _GRECAPTCHA cookie is a third-party functionality cookie that Google reCAPTCHA sets on www.google.com to support the risk analysis that tells people and bots apart. Google reCAPTCHA "sets a necessary cookie (_GRECAPTCHA)" when reCAPTCHA runs, for the purpose of its risk analysis, according to the Google Cloud Fraud Defense FAQ. The reCAPTCHA servers send the _GRECAPTCHA cookie in an HTTP response, so no script on your page writes the cookie and the cookie never appears under your own domain. Your cookie scanner shows the _GRECAPTCHA cookie under www.google.com with the path /recaptcha.

Google renamed reCAPTCHA Enterprise to Google Cloud Fraud Defense, and the classic reCAPTCHA script from www.google.com/recaptcha/api.js sets the same _GRECAPTCHA cookie.

_GRECAPTCHA cookie facts
Cookie name_GRECAPTCHA
VendorGoogle reCAPTCHA
CompanyGoogle LLC (Google Ireland Limited for visitors in the EU)
CategoryFunctionality
PartyThird-party
Domainwww.google.com, path /recaptcha
Set byThe reCAPTCHA servers at www.google.com/recaptcha/, in a Set-Cookie HTTP response header
Retention180 days (6 months)
HttpOnlyYes
SecureYes
SameSiteNone
Cookie Consent categoryfunctionality
Privacy Consent vendor categoryFunctionality (functionality)

Who Sets the _GRECAPTCHA Cookie

Google reCAPTCHA sets the _GRECAPTCHA cookie from the servers of Google once the reCAPTCHA widget runs on your page. A scan by the TermsFeed website auditor from France on 9 October 2026 found the _GRECAPTCHA cookie on www.google.com with the path /recaptcha. The cookie arrived in the response of the reCAPTCHA Enterprise endpoint www.google.com/recaptcha/enterprise/reload, with HttpOnly, Secure, and SameSite=None.

The same scan found the _GRECAPTCHA cookie after the visitor clicked "Decline all", because the site loaded reCAPTCHA on every page outside its consent banner.

Read how Google LLC handles the data in the Google reCAPTCHA privacy policy, and sign the Google Cloud Data Processing Addendum before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

How to Block the _GRECAPTCHA Cookie Until Visitors Accept

Block the _GRECAPTCHA cookie by holding back the reCAPTCHA script (api.js) until the visitor accepts functionality cookies. TermsFeed Free Cookie Consent and TermsFeed Privacy Consent place Google reCAPTCHA in the functionality category. Check whether an exemption applies to your own use of Google reCAPTCHA in the consent rules for the _GRECAPTCHA cookie.

Google reCAPTCHA sets no _GRECAPTCHA cookie while the reCAPTCHA script waits as a tagged script. The forms that rely on reCAPTCHA then need a fallback, such as a consent note that asks the visitor to accept.

Block the _GRECAPTCHA Cookie With TermsFeed Free Cookie Consent

TermsFeed Free Cookie Consent runs a tagged script only after the visitor accepts its category. Change type="text/javascript" to type="text/plain" and add data-cookie-consent="functionality", the Cookie Consent category for functionality cookies. The tagged the reCAPTCHA script (api.js) looks like this.

<script type="text/plain" data-cookie-consent="functionality" src="https://www.google.com/recaptcha/api.js" async defer></script>

Cookie Consent runs the tagged code after the visitor clicks "I agree" or accepts the functionality category in the Preferences Center. The illustration shows the consent banner and the script it releases.

The TermsFeed Free Cookie Consent banner: (1) the visitor clicks "I agree", (2) Cookie Consent runs the script tagged functionality. Illustration of the consent banner.

Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.

Block the _GRECAPTCHA Cookie With TermsFeed Privacy Consent

Add Google reCAPTCHA from its template in TermsFeed Privacy Consent. The reCAPTCHA script then loads on pages outside your login and payment forms only after the visitor accepts the Functionality vendor category. The template loads the script once, renders the check in each g-recaptcha container, and hides the consent notes of your forms.

Load reCAPTCHA directly on the login and payment forms that need reCAPTCHA. Show a consent note in the other forms, such as a contact form, so a visitor who declines knows why the check is missing.

The Google reCAPTCHA template asks for no ID and fills every field of the vendor. Pick the "Google reCAPTCHA" card under Functionality and click "Add Google reCAPTCHA". The illustration shows the template form in the TermsFeed app.

The Google reCAPTCHA template in TermsFeed Privacy Consent: (1) pick the card, (2) click "Add Google reCAPTCHA". Illustration of the TermsFeed app.

Privacy Consent detects the location of each visitor and records every answer in a consent log. Set up Google reCAPTCHA from its template with TermsFeed Privacy Consent.

How to Verify That the _GRECAPTCHA Cookie Waits for Consent

Verify the setup in a private window. Open Chrome DevTools, select the Application tab, and open Cookies. Click "I decline" on the consent banner and reload the page. The _GRECAPTCHA cookie must not appear in the list until you accept functionality cookies.

How Long the _GRECAPTCHA Cookie Lasts

The _GRECAPTCHA cookie lasts 180 days (6 months).

Google gives no lifetime for the _GRECAPTCHA cookie in the Google Cloud Fraud Defense FAQ. The TermsFeed website auditor measured an expiry of 180 days (6 months) on 9 October 2026, and the TermsFeed Privacy Consent template lists 6 months.

Scripts and Requests of Google reCAPTCHA That Come With the _GRECAPTCHA Cookie

The catalog lists 2 scripts, pixels, and data endpoints of Google reCAPTCHA, which a cookie scanner or the Network tab of Chrome DevTools shows next to the _GRECAPTCHA cookie. Block the main script, and the requests in the table stop with the main script.

TypeResourceHostWhat it does
ScriptreCAPTCHA script (api.js)www.google.com
www.recaptcha.net
The reCAPTCHA script loads the reCAPTCHA widget, whose requests to www.google.com/recaptcha/ set the _GRECAPTCHA cookie.
ScriptreCAPTCHA Enterprise script (enterprise.js)www.google.comThe reCAPTCHA Enterprise script of Google Cloud Fraud Defense loads the risk analysis, whose requests set the _GRECAPTCHA cookie.

Changes to the _GRECAPTCHA Cookie

The catalog records 1 dated change that affect the _GRECAPTCHA cookie. The newest change comes first.

DateChange
2 April 2026Google removed the references to the Google Privacy Policy and the Google Terms of Service from the reCAPTCHA badge. Google recommends that sites remove the same references from their own pages.

_GRECAPTCHA Cookie FAQs

Is _GRECAPTCHA a necessary cookie?

No, the _GRECAPTCHA cookie is not a strictly necessary cookie on every page, although Google calls the cookie "a necessary cookie". Firstly, the exemption covers storage strictly necessary for a service the visitor asks for, such as a login. Secondly, a reCAPTCHA script on every page serves no service that the visitor asked for on those pages. Thirdly, the TermsFeed Privacy Consent template places reCAPTCHA in the Functionality vendor category for the pages outside the forms that need reCAPTCHA.

Does reCAPTCHA set cookies?

Yes, Google reCAPTCHA sets the _GRECAPTCHA cookie on www.google.com. Firstly, the Google Cloud Fraud Defense FAQ states that reCAPTCHA "sets a necessary cookie (_GRECAPTCHA)" when reCAPTCHA runs. Secondly, the reCAPTCHA servers send the cookie in an HTTP response with the path /recaptcha. Thirdly, the TermsFeed website auditor found the cookie with a 180-day expiry on a scanned site.

Does the _GRECAPTCHA cookie appear under my own domain?

No, the _GRECAPTCHA cookie appears under www.google.com, never under your own domain. Firstly, the reCAPTCHA servers of Google send the cookie. Secondly, the cookie carries the path /recaptcha, so the browser sends the cookie only to reCAPTCHA. Thirdly, the HttpOnly flag hides the cookie from the scripts on your page.

How do I avoid other Google cookies with reCAPTCHA?

Load reCAPTCHA from www.recaptcha.net instead of www.google.com, the domain the Google Cloud Fraud Defense FAQ names for sites that want to avoid other Google cookies. Replace www.google.com with www.recaptcha.net in the URL of the reCAPTCHA script and keep the rest of the code.

Sources for the _GRECAPTCHA Cookie

The facts on this page come from the documentation Google publishes, checked on 2026-10-17. The catalog lists every source so you check each fact yourself.