On this page
What this issue is
Web pages can carry indexing instructions in their HTML, in a meta robots tag. Files such as PDFs, Word documents, images and spreadsheets have no HTML, so the only place to put the same instruction is the HTTP response header X-Robots-Tag. The header is sent by your server before the file itself.
Why it costs you leads or sales
When Google sees noindex, it removes the file from its results. Anyone searching for the exact brochure, datasheet or guide will not find it. Buyers who compare products often search for spec sheets and pricing PDFs, so a hidden file means a missed entry point to your funnel.
- Server ruleAdds X-Robots-Tag: noindex to all .pdf files
- Google crawls PDFReads the header and obeys it
- PDF listed in searchNot shown for brochure or spec searches
- Visit and leadNo search visitor reaches the file or your CTA
The file works for people with the link, but search never lists it.
Example: illustrative numbers for one PDF before and after a noindex header is added.
How to check if your site has it
Your browser does not show response headers on a PDF, so use one of these methods.
Request the headers with curl
Run
curl -I https://example.com/files/brochure.pdfin a terminal. Look for a line such asx-robots-tag: noindex. Header names are not case sensitive.Or use browser DevTools
Open DevTools, go to the Network tab, load the PDF URL, click the request and read Response Headers.
Use Search Console
Paste the PDF URL into URL Inspection. If the page is excluded, the report may say 'Excluded by noindex tag' or show the header under the live test's page details.
Check the Pages report
In Search Console, open Indexing > Pages and look at 'Excluded by noindex tag'. Filter for URLs ending in .pdf or other file types.
Test other file types
Repeat for .docx, .xlsx, .pptx and image files you want found. A rule often targets a pattern that covers more than PDFs.
$ curl -I https://example.com/files/brochure.pdf
HTTP/2 200
content-type: application/pdf
x-robots-tag: noindex, nofollowHow to fix it
First decide which files should be indexed. Some documents, such as private contracts or gated downloads, should stay noindexed. Then find where the header is added. It usually comes from the web server config, a plugin, or a CDN rule.
Apache: find the rule
Search
.htaccessand the site config forX-Robots-Tag. A typical culprit is<FilesMatch "\.(pdf|docx)$"> Header set X-Robots-Tag "noindex" </FilesMatch>.Apache: remove or narrow it
Delete the block, or limit it to a private folder only. Reload Apache if you edited the main config.
Nginx: find the rule
Search your server and location blocks for
add_header X-Robots-Tag. Remove it or move it into a location that only matches private paths, then runnginx -tand reload.Check includes
Headers can be set in included files, so search the whole config directory, not just one file.
Check SEO and security plugins
Some SEO plugins have an option to noindex media or attachment files. Review the plugin's media or file settings and turn it off for files you want listed.
Check server-level rules
Open the
.htaccessfile in your site root and look for anX-Robots-Tagheader. Remove it if it targets PDFs you want indexed.Ask your host
Managed hosts sometimes add headers at server level. Ask support to confirm and remove any X-Robots-Tag rule on your uploads folder.
Check where the file is hosted
Files uploaded under Settings > Files are served from Shopify's CDN. You cannot edit the headers there. If the header is present, test the same file from a different location to confirm the source.
Link to the file from an indexable page
If you cannot change headers, publish the content as an HTML page or blog post and link the PDF from it, so the page can rank instead.
Check for a proxy or CDN
Webflow-hosted assets do not offer custom header rules in the designer. If your domain sits behind a proxy such as a CDN, check its response header or transform rules.
Remove the rule there
Delete or narrow any rule that sets
X-Robots-Tag: noindexfor file extensions.
Not the cause
Google Tag Manager cannot set HTTP headers on files. If you see the header, look at your server, CDN or hosting rules instead.
# Remove this broad rule:
# <FilesMatch "\.pdf$">
# Header set X-Robots-Tag "noindex"
# </FilesMatch>
# Keep noindex only for a private folder (put this .htaccess inside /private/):
<IfModule mod_headers.c>
Header set X-Robots-Tag "noindex"
</IfModule># Remove a broad rule like:
# location ~* \.pdf$ { add_header X-Robots-Tag "noindex"; }
location /private/ {
add_header X-Robots-Tag "noindex";
}Before
- Every .pdf gets X-Robots-Tag: noindex
- Brochures and spec sheets missing from search
- Search Console lists them as excluded by noindex
After
- Only private files carry noindex
- Public PDFs return no X-Robots-Tag header
- PDFs can be crawled, indexed and found
How to confirm it's fixed
Re-run curl
Run
curl -Ion the PDF again. There should be nox-robots-tag: noindexline. Test with and without a trailing cache by also adding a query string such as?v=2.Purge caches
Clear your CDN and server cache so the old header is not served from a stored copy.
Run a live test
In Search Console URL Inspection, run Test Live URL and check that indexing is allowed.
Request indexing
Click Request Indexing for your most important files. Others will be picked up as Google recrawls, which can take days to weeks.
Search for the file
Later, search
site:example.com filetype:pdfto see which PDFs are listed.
How to prevent it happening again
- Write server header rules for specific private folders, never for whole file types.
- Keep a list of the PDFs and files that should rank, and re-check their headers after server, CDN or plugin changes.
- Review
.htaccess, Nginx and CDN header rules after migrations and host changes. - Check Search Console's 'Excluded by noindex tag' report monthly for file URLs.
- Use a staging site for header changes and test with
curl -Ibefore going live. - Put gated or private downloads behind a login, not just a noindex header.
How FunnelGuard handles this
FunnelGuard does not check this yet. Reading the response headers of PDFs and other non-HTML files is a possible future check, but it is not part of the product today.
What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a journey breaks, a failure is re-checked from a second region and you get one alert with a screenshot and a likely cause. That helps if a lead magnet download step stops working, but it will not tell you a PDF has a noindex header.
Questions people ask
Why is my PDF not showing up in Google search?
A common cause is an X-Robots-Tag: noindex HTTP header sent with the file. Other causes include a robots.txt block, no links to the file, or the file being new. Check the headers with curl -I and the URL in Search Console's URL Inspection.
How do I check if a PDF has a noindex header?
Run curl -I followed by the PDF URL and look for an x-robots-tag line containing noindex. You can also open DevTools, go to the Network tab, load the PDF and read its response headers. Search Console's URL Inspection also reports if noindex blocks indexing.
Can you put a noindex meta tag in a PDF?
No. PDFs have no HTML head, so a meta robots tag does not work. For non-HTML files, the way to send noindex is the X-Robots-Tag HTTP header from your server.
How do I remove X-Robots-Tag noindex from PDFs in Apache or Nginx?
Find the Header set X-Robots-Tag line in Apache or the add_header X-Robots-Tag line in Nginx, then delete it or limit it to private paths. Reload the server, clear any CDN cache, and test again with curl -I.
Should PDFs be indexed by Google?
Yes, if they are public content you want people to find, such as brochures, guides and spec sheets. Keep private or gated files out of search with a login, and use noindex only for files that are public but should not be listed.
How long does it take for a PDF to come back in Google after removing noindex?
It depends on how often Google recrawls the file. It can take a few days to several weeks. You can speed it up by requesting indexing in Search Console and linking to the PDF from pages Google already crawls.
Does FunnelGuard check for noindex headers on PDFs?
No, not yet. It is a possible future check. For now, use curl -I and Search Console to watch for it.
Related issues
- SEO-027X-Robots-Tag: noindex HTTP header on a landing pageFix guide
- SEO-026noindex meta tag on a money or landing pageFix guide
- SEO-038noindex page also blocked in robots.txt so the noindex is never seenFix guide
- SEO-039Pages noindexed but still in the XML sitemapFix guide
- SEO-032Conflicting robots directives (index and noindex both present)Fix guide
- SEO-040Removal requested in Search Console's Removals tool and forgottenFix guide