Reconnaissance and Enumeration
Which file at the root of a website tells crawlers which paths they should not index, and can reveal hidden directories to a tester?
Show the answer
Correct answerA. robots.txt
AWhy this is right: Robots.txt holds Disallow and Allow rules for crawlers, often exposing sensitive paths.
BWhy not this: Favicon.ico is the site icon and contains no crawler directives.
CWhy not this: Web.config is an ASP.NET configuration file and is not served to crawlers or clients.
DWhy not this: Sitemap.xml lists URLs the owner wants indexed rather than paths to exclude.
Robots.txt holds Disallow rules for crawlers, so a tester reading it can discover paths the owner wanted left out of search results. Sitemap.xml does the opposite: it lists URLs to be indexed.