What Is Robots.txt?

A robots.txt file is a plain text file placed at the root of a website that tells search engine crawlers which parts of the site they’re allowed or not allowed to crawl.

Correct Syntax

A basic robots.txt uses simple directives: User-agent: specifies which crawler the rule applies to (or * for all), Disallow: blocks a specific path from being crawled, and Allow: can carve out exceptions within a disallowed section. A Sitemap: line pointing to your XML sitemap is also commonly included.

Common Mistakes

Frequent errors include accidentally disallowing the entire site with Disallow: /, blocking CSS or JavaScript files needed for Google to render pages properly, confusing “disallow crawling” with “prevent indexing” (a disallowed page can sometimes still appear in results without content if it’s linked to elsewhere — noindex is the correct tool for that), and forgetting that robots.txt rules are case-sensitive and applied literally.

Table of Contents

Annabelle Cochrane

Managing Director / SEO Strategist

Annabelle is a qualified marketing specialist with over 6 years of hands-on experience providing service-based businesses with real, tangible, out-come based SEO campaigns. 

more insights

seo for law firms

Law Firm SEO: The Complete Guide for Australian Lawyers (2026)

This guide is general marketing information, not legal advice. Check your obligations with your Law Society or regulator. Legal searches are some of the most valuable searches in Google. A single new matter can be worth thousands, sometimes tens of thousands, of dollars, which is exactly why the competition is

Read more >
How to Measure SEO Success: The ALC Outcome Ladder

How to Measure SEO Success: The ALC Outcome Ladder

Most SEO reports answer the wrong question. They tell you how busy someone was, or how many keywords moved, and leave you guessing whether any of it brought in work. After four years in agency and now running ALC, I measure SEO with a simple model I call the ALC

Read more >

Why I’ll Never Track Time on Client Work

I don’t track my time on client work. Not as a KPI, not as a log, not as a number on a report. I never will. That sounds like an odd thing to say about running an SEO business, so let me explain where it comes from. How I Got

Read more >