In short
A crawler does not log in, does not accept cookies and does not fill in forms. Any public page placed behind a login, a password, a blocking interstitial or a redirect to /login is invisible to it. This check consists of making sure that every page intended for the public responds with a 200, with its content in the HTML, to an anonymous request. For paid content, it consists of choosing an explicit access model and marking it up so that the preview served to crawlers is not mistaken for cloaking.
Why it matters
Search engine crawlers and AI crawlers arrive without a session. What they receive at that moment is all they will ever know about the page.
- Redirect to the login page: the crawler follows the 302 and indexes, at best, a login form. The original page does not exist for it.
- 401 or 403 code: the page is excluded. That is the right behavior for private content, a mistake for public content.
- Content loaded after a session check in JavaScript: the initial HTML is empty or only contains a loading message. AI crawlers, which generally do not execute JavaScript, find nothing there.
- Blocking interstitial (cookie wall, age check, mandatory sign-up): if the content is not in the HTML behind the interstitial, the crawler does not see it.
- Global password forgotten after going live: staging protection left active, “coming soon” mode, store password page.
Paid content is a different case: the wall is intentional. Three models exist, and the choice determines what crawlers read.
| Model | What an anonymous request receives | Consequence for crawlers |
|---|---|---|
| Strict server-side wall | An excerpt, then the invitation to subscribe | Only the excerpt can be indexed and cited |
| Long preview (standfirst and first paragraphs) | A substantial part of the article | The part served can be indexed; the rest cannot |
| Full text in the HTML, hidden on display | The whole article | Everything can be read by any crawler or script: this is not protection |
Google documents structured data markup for paid content (isAccessibleForFree). It serves to distinguish a legitimate paywall from cloaking, the practice of showing crawlers something different from what visitors see. This markup is specific to Google: AI crawlers receive what your server sends to an anonymous request, nothing more.
What it improves
- Crawling and indexing Public pages become readable again by Googlebot, Bingbot and AI search crawlers.
- Fetching by AI assistants ChatGPT-User, Perplexity-User or Claude-User get the content when a user asks for your page. A necessary condition for a citation, never a sufficient one.
- Snippet quality The search engine indexes the actual content rather than a login form.
- Compliance A marked-up paywall removes the risk of being treated as cloaking (opens in a new tab).
- Conversion Entry pages (pricing, documentation, product pages) no longer lose visitors to a needless wall.
How to check
1. Anonymous request, without cookies:
curl -s -o /dev/null -w "%{http_code} -> %{redirect_url}\n" https://example.com/page-publique
Compliant result: 200 -> with no redirect URL. A 302 -> https://example.com/login or a 401 indicates a wall.
2. Presence of the content in the HTML. Pick a sentence from the body of the page:
curl -s https://example.com/page-publique | grep -c "an exact sentence from the content"
A result of 0 with a 200 code indicates content loaded with JavaScript or replaced by an interstitial.
3. Same test under a crawler's identity:
curl -s -o /dev/null -w "%{http_code} -> %{redirect_url}\n" -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://example.com/page-publique
4. Private browsing, with JavaScript disabled: the page must remain readable.
5. Search engine tools: the URL Inspection tool in Google Search Console (“Test live URL”, then “View tested page”) shows the HTML and the screenshot Google gets. The Page indexing report flags URLs as “Blocked due to unauthorized request (401)” or “Blocked due to access forbidden (403)”.
6. Site-wide: run a crawler without authentication and sort by response code and redirect URL; every URL that ends up on the login page shows up at once.
How to implement
Step 1 — Separate public from private
List the templates and decide for each one:
| Page type | Expected access |
|---|---|
| Home page, service pages, pricing, blog, documentation, product pages | Public, 200 without a session |
| Customer account, cart, orders, dashboard | Private, authentication |
| Subscriber-only content | Depending on the paywall model chosen |
| Staging, acceptance testing | Private, authentication on the whole host |
Everything private falls under the guide protect private content with authentication (opens in a new tab).
Step 2 — Mark up paid content
If part of the content is restricted, declare it in JSON-LD. The CSS selector designates the element that contains the paid part:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Article title",
"datePublished": "2026-11-24T08:00:00+01:00",
"isAccessibleForFree": false,
"hasPart": {
"@type": "WebPageElement",
"isAccessibleForFree": false,
"cssSelector": ".contenu-abonnes"
}
}
</script>
<div class="apercu">Standfirst and first paragraphs, readable by everyone.</div>
<div class="contenu-abonnes">The rest, reserved for subscribers.</div>
Google's rules: class selectors only, no nested sections, and a CreativeWork type or one of its subtypes (Article, NewsArticle, WebPage…). To exclude a passage from snippets, add data-nosnippet: see check nosnippet, max-snippet and data-nosnippet (opens in a new tab).
Warning: Google accepts that correctly marked-up paid content be served in full to Googlebot so it can be indexed. In that case, verify the crawler's identity by its IP: if you rely on the user agent, anyone can read your articles for free by declaring themselves as Googlebot. And what you serve to Googlebot is not what AI crawlers receive: decide explicitly what each one gets.
Step 3 — Make interstitials compatible
The content must be present in the HTML served; the interstitial (consent, age check, sign-up prompt) is overlaid on it without replacing it. A consent banner must not make sending the content conditional. Avoid redirects to an intermediate page: they break the URL for crawlers.
Step 4 — Remove accidental walls
The following subsections indicate where forgotten protections hide in each environment.
Apache
Versions Apache 2.4.
Look for authentication set in the configuration and in .htaccess files:
grep -rniE "AuthType|AuthUserFile|Require valid-user" /etc/apache2/ /var/www/example/
Delete the block that covers the public site, or limit it to the private directory:
<Directory "/var/www/example/espace-client">
AuthType Basic
AuthName "Customer area"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
sudo apachectl configtest && sudo systemctl reload apache2
Nginx
Versions Nginx 1.18 and later.
grep -rnE "auth_basic|auth_request|satisfy" /etc/nginx/
An auth_basic directive placed at the server level protects the whole site. Move it into the private location block, or cancel it for public paths with auth_basic off;. Reload: sudo nginx -t && sudo systemctl reload nginx.
IIS
Versions IIS 10 (Windows Server 2016 to 2025).
In IIS Manager, open Authentication at the site level: “Anonymous Authentication” must be enabled for the public site. Also check the authorization rules (<authorization>) in web.config.
Cloudflare
Versions Cloudflare and Cloudflare One (Zero Trust) dashboards, all plans, November 2026.
- Cloudflare Access: in the Zero Trust dashboard,
Access controls > Applications, check the domain and path of each application. An application declared onexample.comwithout a path protects the whole site. - I'm Under Attack Mode and challenge rules: every visitor, crawlers included, receives a JavaScript challenge. Turn it off as soon as the incident is over. See check automatic blocking and CAPTCHAs (opens in a new tab).
AWS
Versions AWS console (CloudFront, S3, Application Load Balancer, Amplify Hosting), November 2026.
- CloudFront: in each behavior of the distribution (CloudFront console), “Restrict viewer access” must be set to No for public paths. If it is set to Yes, every unsigned URL returns a 403.
- S3: a static site served directly must allow public read access, or better, stay private behind CloudFront with origin access control.
- Application Load Balancer: check that no listener rule applies an authentication action (Cognito or OIDC) to the
/*path. - Amplify Hosting:
Access controllets you password-protect a branch; the production branch must be publicly accessible.
Plesk
Versions Plesk Obsidian 18.0.
Websites & Domains > Password-Protected Directories: remove the protection set on the site root.
cPanel
Versions cPanel & WHM with the Jupiter theme, November 2026 versions.
Files > Directory Privacy: protected folders carry a padlock icon. Disable the protection on public_html if it is active.
Shared hosting
Open the .htaccess file at the root and look for AuthType. With some hosting providers, the site's technical or temporary URL is protected by default: that is normal, as long as the final domain name is not.
Vercel
Versions Vercel dashboard, all plans, November 2026.
Settings > Deployment Protection. The “Standard Protection” scope protects preview URLs and leaves production domains public. The “All Deployments” scope also protects the production domain: your visitors and crawlers then receive an authentication page.
Netlify
Versions Netlify interface, credit-based plans and legacy plans, November 2026.
Project configuration > General > Visitor access: check that no password protection applies to production, and that no Basic-Auth line in the _headers file covers /*.
WordPress
Versions WordPress 6.4 to 7.1.
- Maintenance or “coming soon” mode: dedicated plugins, page builders and some hosting providers offer one. Turn it off after going live.
- Plugins that force login (Force Login, membership plugins): check their rules per content type.
- Content visibility: in the editor, content set to “Private” or “Password protected” is not public. Filter the list of pages on these statuses.
- Paywall plugins: check what is served without a session and add the markup from step 2 if the plugin does not.
The “Discourage search engines from indexing this site” setting is a different topic: see remove accidental noindex tags (opens in a new tab).
Shopify
Versions Shopify admin, all plans, November 2026.
Online Store > Preferences, “Store access” section: as long as private mode is turned on, the whole store displays a password page. For a B2B store, requiring login hides the catalog from crawlers: keep the pages you want to be visible public.
PrestaShop
Versions PrestaShop 1.7, 8 and 9.
Shop Parameters > General > Maintenance: with the store disabled, visitors receive a maintenance page with a 503. Also check catalog mode and customer group restrictions, which can hide prices and products from anonymous visitors.
Drupal
Versions Drupal 10 and 11.
People > Permissions: the “Anonymous user” role must keep the “View published content” permission.
Laravel
Versions Laravel 10 to 13.
Review routes/web.php: a group protected by auth must only contain private routes.
Route::get('/tarifs', [PricingController::class, 'index'])->name('pricing');
Route::middleware('auth')->group(function () {
Route::get('/espace-client', [AccountController::class, 'show'])->name('account');
});
List the routes and their middleware with php artisan route:list -v and look for public pages that carry auth.
Next.js
Versions Next.js 15 and 16 (App Router and Pages Router).
In proxy.ts (Next.js 16) or middleware.ts (Next.js 15 and earlier), the list of intercepted paths (matcher) must be limited to private areas. The syntax is the same in both cases:
export const config = {
matcher: ["/espace-client/:path*", "/commandes/:path*"],
};
A matcher that is too broad redirects every public page to the login page. Render public content on the server, not after a session check in the browser.
Common mistakes
- Redirecting a page meant to be public to the login page with a 302: the crawler indexes the form.
- Leaving staging protection active after going live: a classic cause of a site that stays invisible for weeks.
- Allowing the crawler in robots.txt and stopping there: the file opens no doors; if the server responds with a 401, the crawler does not get in.
- Serving the full text to crawlers on the strength of the user agent: anyone can declare themselves as Googlebot.
- Hiding paid content present in the HTML with CSS: this is not protection, and without markup it can be treated as cloaking.
- Making the delivery of content conditional on cookie consent: crawlers do not give consent.
- Testing while logged in: your session hides the wall. Test in private browsing or with curl.
Frequently asked questions
Can AI crawlers read a page behind a login form?
No, a crawler does not log in, does not accept cookies and does not fill in forms. Faced with a redirect to the login page, it indexes the form at best; faced with a 401 or a 403, it leaves without any content. A page intended for the public must therefore respond with a 200 to an anonymous request, with its content present in the initial HTML.
Does a paywall prevent Google and AI from reading my articles?
A paywall limits what crawlers read to what your server sends to an anonymous request. With a strict wall, only the excerpt served can be indexed and cited; with a long preview, the whole part served can be. Google accepts that paid content marked up with isAccessibleForFree be served to it in full, but this markup is specific to Google: AI crawlers only receive the anonymous version.
Can a cookie banner block crawlers?
Yes, a cookie banner blocks crawlers if it makes sending the content conditional on consent: crawlers do not give consent and only see what the server sends upfront. The content must be present in the HTML served, and the banner, age check or sign-up prompt must be overlaid on it, without replacing it or redirecting to an intermediate page.
Is serving the full article to Googlebot cloaking?
Not if the paid content is correctly marked up: Google accepts that it be served in full to Googlebot so it can be indexed, and the isAccessibleForFree markup distinguishes this paywall from cloaking. In that case, verify the crawler's identity by its IP address, otherwise anyone can read your articles by declaring themselves as Googlebot. Without markup, hiding text present in the HTML with CSS can be treated as cloaking.
Resources
- Google: structured data for subscription and paywalled contentdevelopers.google.com
- Google: spam policies, including cloakingdevelopers.google.com
- Google: interstitials and dialogsdevelopers.google.com
- Google: verifying Googlebotdevelopers.google.com
- OpenAI: crawlers and user agentsdevelopers.openai.com
- Bing Webmaster Toolsbing.com
- schema.org: isAccessibleForFreeschema.org
- Vercel: Deployment Protectionvercel.com
Updated on
Topic checklist (PDF)