Challenge - 5 Problems
Robots.txt Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Robots.txt User-agent Directive
What does the
User-agent: * directive in a robots.txt file mean?SEO Fundamentals
User-agent: * Disallow: /private/
Attempts:
2 left
💡 Hint
Think about what the asterisk (*) symbol usually means in general contexts.
✗ Incorrect
The User-agent: * directive targets all web crawlers, meaning the rules below it apply to every crawler visiting the website.
📋 Factual
intermediate2:00remaining
Effect of Disallow Directive
What is the effect of the following robots.txt snippet?
User-agent: * Disallow: /admin/ Disallow: /tmp/
SEO Fundamentals
User-agent: * Disallow: /admin/ Disallow: /tmp/
Attempts:
2 left
💡 Hint
Look at the User-agent directive and the paths listed under Disallow.
✗ Incorrect
The Disallow directive tells all crawlers (because of User-agent: *) not to visit the specified folders.
🔍 Analysis
advanced2:00remaining
Interpreting Conflicting Rules in Robots.txt
Given the following robots.txt content, which statement is true about crawler access to
/images/?
User-agent: Googlebot Disallow: /images/ User-agent: * Allow: /images/
SEO Fundamentals
User-agent: Googlebot Disallow: /images/ User-agent: * Allow: /images/
Attempts:
2 left
💡 Hint
Specific user-agent rules override general ones.
✗ Incorrect
The rule for Googlebot specifically disallows /images/, while the general rule allows it for all other crawlers.
❓ Comparison
advanced2:00remaining
Difference Between Disallow and Allow Directives
Which of the following best describes the difference between
Disallow and Allow directives in robots.txt?Attempts:
2 left
💡 Hint
Think about how specific rules can override general ones.
✗ Incorrect
Disallow tells crawlers not to visit certain paths. Allow can be used to permit access to sub-paths even if a parent path is disallowed.
❓ Reasoning
expert3:00remaining
Predicting Crawler Behavior with Complex Robots.txt
Consider this robots.txt file:
User-agent: * Disallow: / User-agent: Bingbot Allow: /public/ Disallow: /public/private/Which statement correctly describes Bingbot's access?
SEO Fundamentals
User-agent: * Disallow: / User-agent: Bingbot Allow: /public/ Disallow: /public/private/
Attempts:
2 left
💡 Hint
Specific user-agent rules override general ones; Allow and Disallow can be combined.
✗ Incorrect
The general rule blocks all crawlers everywhere. Bingbot has a specific rule allowing /public/ but disallowing /public/private/. So Bingbot can access /public/ except the private subfolder.