On this page
What this issue is
Search engines follow links and sitemaps to find files on your site. If a file sits at a public URL, Google can index it and show it in results. Typical examples are invoices, contracts, client lists, exported leads (CSV or XLSX), database dumps (.sql), backups (.zip), staging copies and files such as .env.
Why it costs you leads or sales
Indexed private files can leak customer data, price lists, internal plans or credentials. That can mean data protection problems, phishing aimed at your customers and lost trust. Files that contain passwords or keys can lead to a full site takeover.
- File uploadedSaved in a public folder or bucket
- No access controlAnyone with the URL can open it
- Google crawls itFound via a link or sitemap
- Shown in resultsAnyone can search and download it
The break is the missing access control. Everything after it follows.
How to check if your site has it
Search your own domain
In Google, search for file types on your site, for example: site:yourdomain.com filetype:pdf, then filetype:xls, filetype:xlsx, filetype:csv, filetype:sql, filetype:zip, filetype:env, filetype:log.
Search for sensitive words
Try site:yourdomain.com "confidential", "invoice", "password", "internal use only" and inurl:backup or inurl:staging.
Check Search Console
Open Google Search Console, go to Indexing > Pages and review the list of indexed URLs. Look for /uploads/, /backup/, /tmp/ and unusual file extensions.
Test the URL while logged out
Open each suspicious URL in a private window. If it loads without a login, it is public.
How to fix it
Order matters. First stop the file being public. Then ask Google to drop it. If you only add noindex or a removal request while the file is still open, people can still download it by direct link.
Block or delete the file
Delete files you do not need. Move the rest behind a login or to private storage so the public URL returns 403, 404 or 410.
Request removal in Search Console
Go to Indexing > Removals > New request > Temporary removal, and enter the URL. Use 'Remove all URLs with this prefix' for a whole folder. This hides the result for about six months.
Make the removal permanent
Make the URL return 404 or 410, or return 401/403 for files that must stay private. Google then drops it on its next crawl.
Do not rely on robots.txt
A Disallow rule stops crawling, not indexing. Google can still list a blocked URL if other pages link to it, and it cannot see a noindex on a page it is not allowed to crawl.
Rotate any exposed secrets
Change passwords, API keys and database credentials found in the files.
Find stray files
In Media > Library and via FTP/file manager, check wp-content/uploads and the site root for backups, exports and .sql or .zip files. Delete them.
Protect private uploads
Use a download-protection or membership plugin for files that only customers should see, so they are served behind a login instead of a public URL.
Check the search setting
Under Settings > Reading, make sure 'Discourage search engines from indexing this site' is off on the live site and on for staging.
Review Files
Go to Content > Files. Files uploaded there get a public cdn.shopify.com URL. Delete anything private, such as price lists or customer exports.
Send private documents another way
Share contracts and invoices by email or a private document tool, not as store files.
Check Assets
Open the Assets panel and delete private PDFs and documents. Uploaded assets are public by URL.
Hide staging
In Project settings > SEO, turn on 'Disable Webflow subdomain indexing' for the webflow.io staging copy.
Review the Media Manager
Delete private files and avoid linking them from public pages.
Hide pages from search
In Page settings > SEO, turn off 'Show this page in search results' for pages that link to documents.
Review file links
Files uploaded to pages or blocks are public by URL. Delete private ones from the page and the file storage.
Use a hidden option carefully
In Page settings > SEO, tick 'Hide this page from search results'. This does not secure the file, so still remove it.
Send a noindex header for file types
Add X-Robots-Tag rules (see the code below) as a second layer, and block sensitive paths with authentication or a deny rule.
Keep secrets out of the web root
Store backups, exports and .env files outside the public folder, or in private storage with signed, expiring links.
# Deny backups, dumps, logs and env files
location ~* \.(sql|bak|zip|tar|gz|log|env)$ {
deny all;
}
# Keep documents out of search results
location ~* \.(pdf|docx?|xlsx?|csv)$ {
add_header X-Robots-Tag "noindex, nofollow";
}<FilesMatch "\.(sql|bak|zip|tar|gz|log|env)$">
Require all denied
</FilesMatch>
<FilesMatch "\.(pdf|docx?|xlsx?|csv)$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>Before
- Client export sits at /uploads/leads.csv
- Opens for anyone without a login
- Listed in Google for site: searches
- Hidden only by a robots.txt rule
After
- File deleted or moved to private storage
- Public URL returns 403 or 404
- Removal requested in Search Console
- Secrets rotated, rules block new leaks
How to confirm it's fixed
- The file URL returns 403, 404 or 410 in a private browser window
- The URL shows as removed in Search Console > Indexing > Removals
- Repeat your site: and filetype: searches and find no sensitive results
- Inspect the URL in Search Console's URL Inspection tool and confirm it is not indexed
- Exposed passwords and keys have been changed
- Cached copies no longer appear after the removal takes effect
How to prevent it happening again
- Never upload private files to public media libraries or file managers
- Keep backups, exports and .env files outside the web root
- Use signed, expiring links for customer documents
- Add deny and X-Robots-Tag rules for risky file types
- Keep staging sites behind a password, not just noindex
- Review site: and filetype: searches every few months
- Check Search Console's Pages report after big site changes or migrations
How FunnelGuard handles this
This is outside what FunnelGuard checks. FunnelGuard is a synthetic monitoring service: a robot visitor runs your lead forms, checkouts and booking journeys and checks tracking and lead delivery. It does not look for files in Google's index.
Common questions
The answers below cover the questions people ask most about this problem.
Questions people ask
Why is my private PDF showing up in Google?
Google can index any file at a public URL that it finds through a link or sitemap. If the PDF is in an open uploads folder, no login stops the crawler. Remove or protect the file, then request removal in Search Console.
How do I remove a file from Google search results?
First make the file private or delete it so the URL returns 403, 404 or 410. Then in Google Search Console go to Indexing > Removals and submit a temporary removal request for the URL or folder. Google drops it for good once it recrawls the URL and sees it is gone.
Does robots.txt hide files from Google?
No. A Disallow rule only stops Google crawling the URL. The URL can still be indexed if other pages link to it, and Google cannot read a noindex tag on a page it is blocked from crawling. Use access control or deletion for sensitive files.
How do I find out which of my files are indexed?
Search Google for site:yourdomain.com filetype:pdf and repeat for xls, xlsx, csv, sql, zip and log. Also check the Indexing > Pages report in Search Console for odd URLs in folders like /uploads/ or /backup/.
How do I stop Google indexing PDFs on my site?
Send an X-Robots-Tag: noindex header for PDF files from your server, or protect them behind a login. Allow crawling so Google can see the header. This only affects search, so files that are truly private still need access control.
How long does it take Google to remove a file after I request it?
A Search Console removal request often takes effect within a day or so, though timing varies. It hides the result for about six months. For a permanent fix, the URL must return 404, 410 or a login block.
Can FunnelGuard tell me if sensitive files are indexed?
No. FunnelGuard monitors funnels such as forms, checkouts and tracking, not search indexing or exposed files. Use a web security scanner and Google Search Console for this.