Bird
0
0

Identify the mistake in this robots.txt snippet:

medium📝 Analysis Q6 of 15
SEO Fundamentals - Technical SEO Basics
Identify the mistake in this robots.txt snippet:
User-agent: *
Disallow: private/
Allow: /private/data/
AAllow directive cannot be used with Disallow
BMissing leading slash in Disallow path
CUser-agent should be specified as 'all' instead of '*'
DPaths in Disallow and Allow must be identical
Step-by-Step Solution
Solution:
  1. Step 1: Check path syntax

    Paths must start with a slash / to be valid.
  2. Step 2: Analyze Disallow directive

    Disallow: private/ is missing the leading slash.
  3. Step 3: Confirm Allow usage

    Allow can be used with Disallow to permit subpaths.
  4. Final Answer:

    Missing leading slash in Disallow path -> Option B
  5. Quick Check:

    Paths must start with '/' in robots.txt [OK]
Quick Trick: Always start paths with '/' in Disallow and Allow [OK]
Common Mistakes:
  • Omitting the leading slash in paths
  • Thinking Allow cannot be combined with Disallow
  • Using 'all' instead of '*' for user-agent

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SEO Fundamentals Quizzes