GSGeneral Spirit
Log inStart free

Age gates and SEO: how to gate without losing rankings

General Spirit team · Last updated October 26, 202610 min read

Summary

A badly built age gate can hide a beer, wine or spirits site from search. This guide covers what Google and Bing say about gated content: overlay the gate instead of redirecting, let real search crawlers through, keep the content the same so it isn't cloaking, watch JavaScript rendering and layout shift, and test the result in Search Console. Written for alcohol brands.

Most alcohol brands need an age gate, and most want their product pages, cocktail recipes and brewery tour listings to show up in search. The two only clash when the gate stops search engines from seeing the site. Google and Bing have both written down what they expect from gated sites, and the fixes are mostly simple.

If you're still choosing a gate, start with our guide to age gates for alcohol brands.

What Google says about age gates

Google's page on interstitials and dialogs uses an age gate as its example of a mandatory interstitial, "a type of interstitial where the user must provide their age before accessing the content." Mandatory interstitials are exempt from Google's guidance on intrusive pop-ups. A gate on a whisky, beer or wine site isn't treated like a newsletter pop-up.

Google still recommends a few practices for them:

  • "Ensure that the content is overlaid with the interstitial." The page should load underneath the gate.
  • "Don't redirect the incoming HTTP requests to a different page for collecting consent or providing data."
  • "For content behind a mandatory age gate for adult users, we recommend allowing Googlebot to crawl your content without triggering the age gate." Google suggests doing this by confirming that requests really come from Googlebot and serving those requests the page without the gate.

Overlay the gate, don't redirect to it

The most damaging pattern is the gate page: every visitor who arrives without a cookie gets redirected to /age-check, and only after passing is sent on to the page they wanted. Google is blunt about the result: "Redirecting all URLs to a single page will remove all but that one page from search results, as Googlebot can only fetch that page" (Google Search Central). A brewery with 200 beer pages could end up with one indexed URL: the gate.

With an overlay, each URL returns its own content with a 200 status and the gate sits on top, so every page keeps its place in the index. It also handles deep links. The Wine Institute's Code of Advertising Standards says "Any linkage to a member website page that bypasses its home page should include an age affirmation mechanism." A visitor who lands on a cabernet page from search should see the gate on that page, not be bounced to the homepage and lose their place.

Let real search crawlers through

Even with an overlay, a gate can get in a crawler's way. Googlebot doesn't keep cookies from one page to the next (more below), so if content is only added after someone passes the gate, Google may index an empty page with a date picker on it.

There's a second risk for adult-adjacent categories. Google's guidelines for sites with explicit content warn that when Googlebot can't see content behind an age gate, "there is a higher chance that this content or even the whole site gets classified automatically as explicit," which affects whether it shows when SafeSearch is on. A distillery or winery isn't explicit content, and shouldn't be filtered as if it were.

Bing's position is similar. The Bing Webmaster Guidelines ask sites to "Allow Bingbot to crawl and render content efficiently," and list "Hiding critical content behind client-side rendering" among the things to avoid. Those guidelines also cover Copilot and grounding results, so blocking Bingbot can cost AI answer visibility too.

The answer is to recognize real search crawlers and serve them the page without the gate.

Confirm the crawler, don't trust the user agent

Checking the user-agent string alone isn't enough. Google's Googlebot page warns that the user-agent header "used by Googlebot is often spoofed by other crawlers." A gate that waves through anything saying "Googlebot" can be passed by changing one header.

Google's crawler overview says its crawlers identify themselves in three ways: the user-agent header, the source IP address, and the reverse DNS hostname of that IP. Use the second and third to confirm the first. Google recommends either a reverse DNS lookup on the request's IP or matching the IP against its published Googlebot IP ranges. For Bing, match against Bing's published Bingbot IP ranges. Fetch the lists on a schedule rather than hard-coding them.

Two details catch people out:

  • Google's testing tools use their own user agent. Search Console's URL Inspection and the Rich Results Test send Google-InspectionTool, according to Google's list of common crawlers. If your crawler rule matches only the string "Googlebot," your tests may show the gate even when real Googlebot doesn't see it.
  • Google-Extended isn't a search crawler. It's a robots.txt token for managing whether your content may be used for Gemini training and grounding, and Google says it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal" (Google).

AI agents are a separate question, covered in why human age gates don't stop AI agents.

Letting crawlers through isn't cloaking

Brands sometimes worry this counts as cloaking. Google defines cloaking in its spam policies as "presenting different content to users and search engines with the intent to manipulate search rankings and mislead users."

An age gate bypass is the opposite: the crawler gets exactly the page an adult gets after passing the gate. Google's spam policies say directly that for a content-gating mechanism, "we don't consider this to be cloaking if Google can see the full content of what's behind the paywall just like any person who has access to the gated material." Bing's guidelines describe cloaking as serving "materially different experiences to crawlers and visitors," which a gate bypass doesn't do.

The line to stay behind: the content must be the same. Google's page on dynamic rendering says serving crawlers a different technical version is fine "As long as your dynamic rendering produces similar content," but serving "completely different content to users and crawlers can be considered cloaking." Don't use the crawler path to show search engines copy or offers visitors never see.

Watch how the gate interacts with JavaScript

Google's JavaScript SEO basics explain that Google processes pages in three phases: crawling, rendering and indexing. Pages that return a 200 status are queued for rendering, where "a headless Chromium renders the page and executes the JavaScript," and Google "uses the rendered HTML to index the page." So whatever your gate script does to the page during rendering is what gets indexed.

Two behaviors matter for gates. Google's guide to fixing JavaScript problems says to "Expect Googlebot to decline user permission requests," and that "Local Storage and Session Storage data are cleared across page loads," as are cookies. A gate that remembers a passed visitor with a cookie or localStorage will treat Googlebot as a new visitor on every single page. That's fine if the content stays under the overlay, and a problem if the script withholds it until the gate is passed.

Practical rules:

  • Keep the content in the HTML. Render product details, tasting notes and recipes on the server or at build time, and draw the gate on top. Google still recommends server-side rendering, static rendering or hydration over workarounds (Google).
  • Don't let the gate strip the page. If the script deletes or blanks the main content for unconfirmed visitors, that's what Google will index unless the crawler path skips the gate entirely.
  • Don't add noindex to the gate state. Google says it queues 200-status pages for rendering "unless a robots meta tag or header tells Google not to index the page" (Google).

Don't lean on robots.txt

robots.txt is the wrong tool for gating. Google's robots.txt guide says it is used mainly to avoid overloading your site with requests and "is not a mechanism for keeping a web page out of Google." Bing says the same: "robots.txt controls crawl access, not indexing" (Bing).

Two mistakes to avoid:

  • Blocking the gate's own script or the site's JavaScript and CSS. Google "won't render JavaScript from blocked files or on blocked pages" (Google), so the rendered page may look broken.
  • Blocking gated sections. A page blocked by robots.txt can still appear in results, just without a description, according to Google.

Keep the overlay from hurting Core Web Vitals

Google's Core Web Vitals targets are LCP within 2.5 seconds, INP under 200 milliseconds, and CLS under 0.1.

Layout shift is the one to watch. From web.dev's CLS guide:

  • Layout shifts within 500 milliseconds of a discrete user input, such as a tap or click, are flagged and can be excluded. A gate closing right after someone taps "Yes" is usually fine.
  • Unexpected shifts are what count: content moving when "DOM elements are dynamically added to the page before existing content."
  • To animate the gate in or out, use the CSS transform property rather than changing height, width or position.

In practice, position the overlay as a fixed layer so it doesn't push content, and keep the gate script small so it responds quickly.

Structured data and the gate

If you mark up products, recipes or events with structured data, Google's structured data guidelines say not to block structured data pages "to Googlebot using robots.txt, noindex, or any other access control methods," and say markup shouldn't describe content that is hidden from the user. A gate that blocks crawlers counts against the first rule. An overlay doesn't break the second, as long as the content is in the page and visible once the gate is passed. Bing likewise says markup "must accurately reflect visible content."

Test it in Search Console

Google's URL Inspection tool will show you what Google gets for a URL:

  1. Inspect a few representative URLs: the homepage, a product page (a stout, a rosé, a bourbon), and a recipe or event page.
  2. Click Test live URL. The live test fetches the page in real time.
  3. Open View tested page and check the Screenshot tab. You should see your page content, not the gate.
  4. Check the rendered HTML in the same panel for your main content, title and structured data.
  5. Look at Crawl allowed? and Indexing allowed? to catch robots.txt blocks or a stray noindex.

Google notes that a successful live test doesn't guarantee indexing, and that the screenshot is only available in a successful live test.

A quick checklist

  • The gate overlays each page; no redirects to a gate URL.
  • Each URL returns its own content with a 200 status.
  • Real Googlebot and Bingbot are confirmed by reverse DNS or published IP ranges, not user agent alone, and get the page without the gate.
  • Crawlers see the same content as visitors who pass the gate.
  • Content is in the server-rendered HTML; the gate script doesn't remove it.
  • No robots.txt blocks on the gate script, CSS or JavaScript, and no noindex on the gated state.
  • The overlay doesn't cause layout shift, and the gate responds quickly.
  • URL Inspection screenshots show content, not the gate.

With General Spirit, search crawlers are always allowed, and the gate installs with a script tag, with no proxy or DNS changes.

This article is general information, not legal advice. Check your obligations with counsel in each market you sell into.

FAQ

Does an age gate hurt SEO?

It can if search crawlers can't reach the content behind it. Google exempts mandatory age gates from its intrusive interstitial guidance, but recommends overlaying the gate rather than redirecting, and letting Googlebot crawl the content without triggering the gate.

Is letting Googlebot skip the age gate cloaking?

Not if Googlebot gets the same content a visitor sees after passing the gate. Google says content gating isn't cloaking when Google can see the full content just like a person with access. Showing crawlers different content would be.

Should I redirect visitors to an age gate page?

No. Google says redirecting all URLs to a single page will remove all but that one page from search results, because Googlebot can only fetch that page. Overlay the gate on each page instead.

How do I know a request is really from Googlebot or Bingbot?

Don't trust the user agent alone, because it is often spoofed. Google recommends a reverse DNS lookup on the source IP or matching it against Google's published IP ranges. Bing also publishes a list of Bingbot IP ranges.

How can I test whether Google sees past my age gate?

Use the URL Inspection tool in Search Console. Run a live test and open the screenshot and rendered HTML to check that the page content, not the gate, is what Google gets.

Want people and agents covered on your site?Set up your gate
General Spirit team · Last updated October 26, 2026

Related

GSGeneral Spirit

Age gates and SEO: how to gate without losing rankings

General Spirit team · Last updated October 26, 202610 min read

Summary

A badly built age gate can hide a beer, wine or spirits site from search. This guide covers what Google and Bing say about gated content: overlay the gate instead of redirecting, let real search crawlers through, keep the content the same so it isn't cloaking, watch JavaScript rendering and layout shift, and test the result in Search Console. Written for alcohol brands.

On this page

Most alcohol brands need an age gate, and most want their product pages, cocktail recipes and brewery tour listings to show up in search. The two only clash when the gate stops search engines from seeing the site. Google and Bing have both written down what they expect from gated sites, and the fixes are mostly simple.

If you're still choosing a gate, start with our guide to age gates for alcohol brands.

What Google says about age gates

Google's page on interstitials and dialogs uses an age gate as its example of a mandatory interstitial, "a type of interstitial where the user must provide their age before accessing the content." Mandatory interstitials are exempt from Google's guidance on intrusive pop-ups. A gate on a whisky, beer or wine site isn't treated like a newsletter pop-up.

Google still recommends a few practices for them:

  • "Ensure that the content is overlaid with the interstitial." The page should load underneath the gate.
  • "Don't redirect the incoming HTTP requests to a different page for collecting consent or providing data."
  • "For content behind a mandatory age gate for adult users, we recommend allowing Googlebot to crawl your content without triggering the age gate." Google suggests doing this by confirming that requests really come from Googlebot and serving those requests the page without the gate.

Overlay the gate, don't redirect to it

The most damaging pattern is the gate page: every visitor who arrives without a cookie gets redirected to /age-check, and only after passing is sent on to the page they wanted. Google is blunt about the result: "Redirecting all URLs to a single page will remove all but that one page from search results, as Googlebot can only fetch that page" (Google Search Central). A brewery with 200 beer pages could end up with one indexed URL: the gate.

With an overlay, each URL returns its own content with a 200 status and the gate sits on top, so every page keeps its place in the index. It also handles deep links. The Wine Institute's Code of Advertising Standards says "Any linkage to a member website page that bypasses its home page should include an age affirmation mechanism." A visitor who lands on a cabernet page from search should see the gate on that page, not be bounced to the homepage and lose their place.

Let real search crawlers through

Even with an overlay, a gate can get in a crawler's way. Googlebot doesn't keep cookies from one page to the next (more below), so if content is only added after someone passes the gate, Google may index an empty page with a date picker on it.

There's a second risk for adult-adjacent categories. Google's guidelines for sites with explicit content warn that when Googlebot can't see content behind an age gate, "there is a higher chance that this content or even the whole site gets classified automatically as explicit," which affects whether it shows when SafeSearch is on. A distillery or winery isn't explicit content, and shouldn't be filtered as if it were.

Bing's position is similar. The Bing Webmaster Guidelines ask sites to "Allow Bingbot to crawl and render content efficiently," and list "Hiding critical content behind client-side rendering" among the things to avoid. Those guidelines also cover Copilot and grounding results, so blocking Bingbot can cost AI answer visibility too.

The answer is to recognize real search crawlers and serve them the page without the gate.

Confirm the crawler, don't trust the user agent

Checking the user-agent string alone isn't enough. Google's Googlebot page warns that the user-agent header "used by Googlebot is often spoofed by other crawlers." A gate that waves through anything saying "Googlebot" can be passed by changing one header.

Google's crawler overview says its crawlers identify themselves in three ways: the user-agent header, the source IP address, and the reverse DNS hostname of that IP. Use the second and third to confirm the first. Google recommends either a reverse DNS lookup on the request's IP or matching the IP against its published Googlebot IP ranges. For Bing, match against Bing's published Bingbot IP ranges. Fetch the lists on a schedule rather than hard-coding them.

Two details catch people out:

  • Google's testing tools use their own user agent. Search Console's URL Inspection and the Rich Results Test send Google-InspectionTool, according to Google's list of common crawlers. If your crawler rule matches only the string "Googlebot," your tests may show the gate even when real Googlebot doesn't see it.
  • Google-Extended isn't a search crawler. It's a robots.txt token for managing whether your content may be used for Gemini training and grounding, and Google says it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal" (Google).

AI agents are a separate question, covered in why human age gates don't stop AI agents.

Letting crawlers through isn't cloaking

Brands sometimes worry this counts as cloaking. Google defines cloaking in its spam policies as "presenting different content to users and search engines with the intent to manipulate search rankings and mislead users."

An age gate bypass is the opposite: the crawler gets exactly the page an adult gets after passing the gate. Google's spam policies say directly that for a content-gating mechanism, "we don't consider this to be cloaking if Google can see the full content of what's behind the paywall just like any person who has access to the gated material." Bing's guidelines describe cloaking as serving "materially different experiences to crawlers and visitors," which a gate bypass doesn't do.

The line to stay behind: the content must be the same. Google's page on dynamic rendering says serving crawlers a different technical version is fine "As long as your dynamic rendering produces similar content," but serving "completely different content to users and crawlers can be considered cloaking." Don't use the crawler path to show search engines copy or offers visitors never see.

Watch how the gate interacts with JavaScript

Google's JavaScript SEO basics explain that Google processes pages in three phases: crawling, rendering and indexing. Pages that return a 200 status are queued for rendering, where "a headless Chromium renders the page and executes the JavaScript," and Google "uses the rendered HTML to index the page." So whatever your gate script does to the page during rendering is what gets indexed.

Two behaviors matter for gates. Google's guide to fixing JavaScript problems says to "Expect Googlebot to decline user permission requests," and that "Local Storage and Session Storage data are cleared across page loads," as are cookies. A gate that remembers a passed visitor with a cookie or localStorage will treat Googlebot as a new visitor on every single page. That's fine if the content stays under the overlay, and a problem if the script withholds it until the gate is passed.

Practical rules:

  • Keep the content in the HTML. Render product details, tasting notes and recipes on the server or at build time, and draw the gate on top. Google still recommends server-side rendering, static rendering or hydration over workarounds (Google).
  • Don't let the gate strip the page. If the script deletes or blanks the main content for unconfirmed visitors, that's what Google will index unless the crawler path skips the gate entirely.
  • Don't add noindex to the gate state. Google says it queues 200-status pages for rendering "unless a robots meta tag or header tells Google not to index the page" (Google).

Don't lean on robots.txt

robots.txt is the wrong tool for gating. Google's robots.txt guide says it is used mainly to avoid overloading your site with requests and "is not a mechanism for keeping a web page out of Google." Bing says the same: "robots.txt controls crawl access, not indexing" (Bing).

Two mistakes to avoid:

  • Blocking the gate's own script or the site's JavaScript and CSS. Google "won't render JavaScript from blocked files or on blocked pages" (Google), so the rendered page may look broken.
  • Blocking gated sections. A page blocked by robots.txt can still appear in results, just without a description, according to Google.

Keep the overlay from hurting Core Web Vitals

Google's Core Web Vitals targets are LCP within 2.5 seconds, INP under 200 milliseconds, and CLS under 0.1.

Layout shift is the one to watch. From web.dev's CLS guide:

  • Layout shifts within 500 milliseconds of a discrete user input, such as a tap or click, are flagged and can be excluded. A gate closing right after someone taps "Yes" is usually fine.
  • Unexpected shifts are what count: content moving when "DOM elements are dynamically added to the page before existing content."
  • To animate the gate in or out, use the CSS transform property rather than changing height, width or position.

In practice, position the overlay as a fixed layer so it doesn't push content, and keep the gate script small so it responds quickly.

Structured data and the gate

If you mark up products, recipes or events with structured data, Google's structured data guidelines say not to block structured data pages "to Googlebot using robots.txt, noindex, or any other access control methods," and say markup shouldn't describe content that is hidden from the user. A gate that blocks crawlers counts against the first rule. An overlay doesn't break the second, as long as the content is in the page and visible once the gate is passed. Bing likewise says markup "must accurately reflect visible content."

Test it in Search Console

Google's URL Inspection tool will show you what Google gets for a URL:

  1. Inspect a few representative URLs: the homepage, a product page (a stout, a rosé, a bourbon), and a recipe or event page.
  2. Click Test live URL. The live test fetches the page in real time.
  3. Open View tested page and check the Screenshot tab. You should see your page content, not the gate.
  4. Check the rendered HTML in the same panel for your main content, title and structured data.
  5. Look at Crawl allowed? and Indexing allowed? to catch robots.txt blocks or a stray noindex.

Google notes that a successful live test doesn't guarantee indexing, and that the screenshot is only available in a successful live test.

A quick checklist

  • The gate overlays each page; no redirects to a gate URL.
  • Each URL returns its own content with a 200 status.
  • Real Googlebot and Bingbot are confirmed by reverse DNS or published IP ranges, not user agent alone, and get the page without the gate.
  • Crawlers see the same content as visitors who pass the gate.
  • Content is in the server-rendered HTML; the gate script doesn't remove it.
  • No robots.txt blocks on the gate script, CSS or JavaScript, and no noindex on the gated state.
  • The overlay doesn't cause layout shift, and the gate responds quickly.
  • URL Inspection screenshots show content, not the gate.

With General Spirit, search crawlers are always allowed, and the gate installs with a script tag, with no proxy or DNS changes.

This article is general information, not legal advice. Check your obligations with counsel in each market you sell into.

FAQ

Does an age gate hurt SEO?

It can if search crawlers can't reach the content behind it. Google exempts mandatory age gates from its intrusive interstitial guidance, but recommends overlaying the gate rather than redirecting, and letting Googlebot crawl the content without triggering the gate.

Is letting Googlebot skip the age gate cloaking?

Not if Googlebot gets the same content a visitor sees after passing the gate. Google says content gating isn't cloaking when Google can see the full content just like a person with access. Showing crawlers different content would be.

Should I redirect visitors to an age gate page?

No. Google says redirecting all URLs to a single page will remove all but that one page from search results, because Googlebot can only fetch that page. Overlay the gate on each page instead.

How do I know a request is really from Googlebot or Bingbot?

Don't trust the user agent alone, because it is often spoofed. Google recommends a reverse DNS lookup on the source IP or matching it against Google's published IP ranges. Bing also publishes a list of Bingbot IP ranges.

How can I test whether Google sees past my age gate?

Use the URL Inspection tool in Search Console. Run a live test and open the screenshot and rendered HTML to check that the page content, not the gate, is what Google gets.

Want people and agents covered on your site?Set up your gate
General Spirit team · Last updated October 26, 2026

Related

Age gates for alcohol brands: the complete guideWhy human age gates don't stop AI agentsShopify age gates for alcohol brands