Website technical spec: what to include and how to write it
Published
Learn what sections a website spec contains, how to write one yourself and which mistakes to avoid.
Learn why your website needs robots.txt, how its rules work, what to block and how to avoid hiding important pages from Google.

robots.txt is a text file in the root directory of your website (at an address such as site.com/robots.txt). It tells search engine crawlers which sections they can and cannot crawl. It controls crawling by directing bots away from admin panels, shopping carts and filters, reducing unnecessary server load. This file cannot remove a page from Google search results. That requires a noindex tag. Below, we explain how the rules work, what to block and how to check that everything works correctly.
Before crawling a website, Googlebot requests the file containing the rules and then visits the pages. The file must be in the root directory. Crawlers will not look for it in a subdirectory.
The rules apply only to the address where the file is located. According to Google's documentation, a file on www.example.com does not apply to example.com, and an HTTPS version does not apply to HTTP. If your website is accessible with and without www, check that the secondary version redirects to the primary one.
A few more details from Google's documentation:
The last point leads to a simple rule: do not use this file to hide confidential sections. The file is publicly accessible, and anyone can see the paths you intended to hide. Protect private content with a password.
Google supports four directives. It ignores the others, including Crawl-delay, which is often copied from outdated templates.
Paths can contain two special characters: an asterisk matches any sequence of characters, and a dollar sign marks the end of a URL. The rule Disallow: /*.pdf$ blocks all PDF files. Directive names are case-insensitive, but paths are case-sensitive: /Catalog and /catalog are two different addresses to a crawler.
This example blocks the admin panel, shopping cart, checkout, internal search and URLs with sorting parameters. In the actual file, each rule goes on a separate line without bullet points. The last line tells the crawler where to find the list of relevant pages.
Block sections that offer no value to visitors arriving from search results and waste crawler resources:
Keep categories, product pages, articles, service pages and contact pages accessible. Pay particular attention to stylesheets, scripts and images: Google renders pages much like a browser. If you block a directory containing CSS or JS files, the crawler may see a broken layout and have trouble understanding the content. Outdated advice such as "block /css/ and /js/" can now do more harm than good.
Online store filters need a separate approach. A page for "Nike sneakers size 42" may attract search traffic and be worth keeping indexed, while combinations of five filters are better blocked. Base this decision on keyword research rather than a template.
Blocking crawling does not remove a page from search results. If other websites link to a blocked page, Google may index it and display it in search results without a description because it has not read the content.
To prevent a page from appearing in search results, use a meta robots tag with the noindex value or the HTTP header X-Robots-Tag: noindex (suitable for PDFs and images). There is one catch: a page with noindex must not be blocked in robots.txt. The crawler cannot access the page, will not see the directive and will leave the URL in the index.
A common example among website owners: they remove expired promotions and block their URLs using Disallow. Links to those promotions remain on social media, and the pages continue to appear in search results without descriptions for a long time. The correct approach would be to return a 404 or 410 status code, or add noindex and keep the URL accessible until it is crawled again.
Monitor the server response code. If the file is missing and the server returns 404, Google assumes there are no restrictions. If the server returns a 5xx error, Google's documentation states that it stops crawling the website for the first 12 hours and then uses the last cached copy for up to 30 days. A hosting failure that affects this file can stop crawling across the entire website.
Make it a habit to check the file and the Search Console report after every website migration, CMS change or major update. It takes five minutes.
If you are unsure whether the file is configured correctly or pages are disappearing from search results, order an SEO audit from UAH 3,500. We will check crawling rules, the sitemap, indexing, duplicate pages and server response codes, then provide a prioritized list of fixes.
Once the technical issues are resolved, you can focus on increasing traffic: SEO services are available from UAH 10,000/month. If you prefer to learn how to do it yourself, book an SEO consultation Price: UAH 1,500 per hour. We will use your website as a practical example.
Rate this article
Published
Learn what sections a website spec contains, how to write one yourself and which mistakes to avoid.
Published
Two ways to advertise on TikTok: in-app Promote and Ads Manager. Minimum budgets, Spark Ads, the TikTok pixel and video tips.
Published
Steps for a new website: check indexing restrictions, set up Search Console, submit a sitemap, request indexing and get your first backlinks.
Published
A guide to Facebook Ads Manager: campaign structure, six objectives, budgets, audiences, placements, the learning phase and reports business owners should monitor.