Bird
0
0

You want to block all crawlers from accessing any URL containing the word "temp" anywhere in the path. Which robots.txt rule achieves this?

hard📝 Application Q8 of 15
SEO Fundamentals - Technical SEO Basics
You want to block all crawlers from accessing any URL containing the word "temp" anywhere in the path. Which robots.txt rule achieves this?
AUser-agent: * Disallow: /temp
BUser-agent: * Disallow: /temp/
CUser-agent: * Disallow: temp
DUser-agent: * Disallow: /*temp*
Step-by-Step Solution
Solution:
  1. Step 1: Understand pattern matching in Disallow

    Using /*temp* blocks any URL containing "temp" anywhere in the path.
  2. Step 2: Compare other options

    Options A and B block only URLs starting with /temp or /temp/, and D is invalid syntax missing leading slash.
  3. Final Answer:

    User-agent: * Disallow: /*temp* -> Option D
  4. Quick Check:

    Use * wildcard to block substring in path [OK]
Quick Trick: Use /*substring* to block URLs containing substring [OK]
Common Mistakes:
  • Blocking only folder /temp instead of substring anywhere
  • Omitting leading slash in Disallow path

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SEO Fundamentals Quizzes