Keeping Law Firm Thank-You and Intake Pages Out of Google
Law firm sites collect pages that should never show up in search results. Thank-you pages after a form submission, multi-step intake forms, client document upload pages, printable PDFs meant for existing clients, staging
Law firm sites collect pages that should never show up in search results. Thank-you pages after a form submission, multi-step intake forms, client document upload pages, printable PDFs meant for existing clients, staging copies of the site. When those pages get indexed, they muddy reporting, confuse visitors who land on them cold and, in the case of intake pages, can expose more than anyone intended.
On a criminal defense site the stakes are a little higher. A page titled "Thank you, we received your DUI case details" sitting in Google's index is awkward at best. This post covers how to keep those pages out cleanly, and the common mistake that keeps them in.
Know which pages you are dealing with
Start with an inventory. Crawl the site with whatever crawler you use and export every URL. Then add the pages a crawler will not find on its own: form endpoints, confirmation pages reached only after a POST, signed upload links, and anything under a client portal.
Sort them into three groups:
- Pages that should never be indexed but may be crawled, such as thank-you and confirmation pages.
- Pages that should not be crawled at all, such as admin paths and internal search results.
- Files that need protection, such as client documents, which belong behind authentication rather than any robots rule.
That third group matters most. Robots rules are a request to well-behaved crawlers, not access control. Anything confidential needs a login.
The robots.txt mistake
The most common error is blocking a page in robots.txt and expecting that to remove it from Google. It does the opposite of what people want. Google's documentation says that for a noindex rule to work, the page must not be blocked by robots.txt, because the crawler has to fetch the page to see the noindex.
A disallowed URL can still be indexed if other pages link to it. Google just shows it without a description. So a thank-you page that is disallowed and linked from an email or a tracking parameter can sit in results for months.
If you want a page out of the index, let it be crawled and tell Google not to index it.
Using noindex in HTML and in headers
For HTML pages, a meta tag in the head is enough. For PDFs and other files, and for cases where you cannot edit the template, send the X-Robots-Tag HTTP header instead. Here is a minimal nginx example for both a thank-you path and the PDF folder:
location ^~ /thank-you/ {
add_header X-Robots-Tag "noindex" always;
}
location ~* ^/client-forms/.*\.pdf$ {
add_header X-Robots-Tag "noindex, nofollow" always;
}
On a CMS you can usually set noindex per page in the SEO plugin or page settings. Check the rendered HTML afterwards. Plugins sometimes print two robots meta tags with conflicting values, and themes sometimes ignore the setting on custom templates.
Remove these pages from your XML sitemap. A sitemap tells search engines you want a URL indexed, and listing a noindexed page sends mixed signals that Search Console will flag.
Thank-you pages and conversion tracking
Many firms track form submissions by counting visits to the thank-you page. If that page is indexed or bookmarked, visits from search or repeat views inflate the count. A defense firm that reports 40 form leads a month when 25 were real makes poor budget decisions.
Fire the conversion on the actual form submit event where you can, and treat thank-you page views as a backup signal. If you rely on the page view, add a parameter or session check so that a direct visit does not count as a lead.
Staging and preview environments
Staging sites leak into search more often than people admit. A copy of the full site on a subdomain competes with the real one and can show draft charge pages with unreviewed legal content.
Password-protect staging. HTTP basic authentication at the server or the host's preview protection is simpler and safer than relying on noindex. If you must leave a preview open, send the X-Robots-Tag header on every response from that host.
Checking and cleaning up
Use the URL Inspection tool in Search Console on a sample of each page type to confirm Google sees the noindex. The Pages report lists URLs excluded by noindex, which is a good place to confirm the rule is working at scale. For deeper debugging of what is and is not indexed across a whole site, the walkthrough on finding and fixing indexing problems on a defense firm website covers the reports in more detail.
If a sensitive page is already indexed and you need it gone fast, the Removals tool in Search Console can hide it temporarily while the noindex takes effect. Use both. The removal request on its own expires after about six months.
More technical SEO notes for law firm sites are collected in the technical SEO for law firms library.
Questions about keeping law firm pages out of search
Is a nofollow link to the thank-you page enough?
No. Nofollow on a link is a hint about that link only. It does not stop indexing if Google finds the URL another way. Use noindex on the page itself.
Can I use robots.txt and noindex together?
Not on the same URL if you want it removed. Once Google has dropped the page, some teams add a disallow later to save crawl activity, but that is optional and rarely needed on a small law firm site.
Should client upload pages use noindex?
They should require authentication. A login keeps both search engines and strangers out, which noindex cannot do.
SBD Marketing works only with criminal defense law firms, one firm per city. It builds websites for defense practices, handles SEO for the charges a firm defends, works on visibility in AI search tools and runs SEO audits.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.