Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CAP Exam - Topic 27 Question 112 Discussion

Posted by Caitlin on Jul 17, 2026 at 05:19 PM

A robots.txt file tells the search engine crawlers about the URLs which the crawler can access on your site. Which of the following is true about robots.txt?

Suggested Answer: A

The robots.txt file is a text file placed in a website's root directory to communicate with web crawlers (e.g., Googlebot) about which pages or resources should not be accessed or indexed. It uses directives like Disallow to specify restricted areas (e.g., Disallow: /admin/). However, robots.txt is not a security mechanism; it is only a request to crawlers, and malicious bots or users can ignore it.

Option A ('Developers must not list any sensitive files and directories in this file'): Correct. Listing sensitive files or directories (e.g., Disallow: /secret/) in robots.txt can inadvertently expose their existence to attackers, who can then attempt to access them directly. The best practice is to avoid mentioning sensitive paths and rely on proper access controls (e.g., authentication, authorization) instead.

Option B ('Developers must list all sensitive files and directories in this file to secure them'): Incorrect. Listing sensitive paths in robots.txt does not secure them; it only informs crawlers to avoid them, and it can serve as a roadmap for attackers.

Option C ('Both A and B'): Incorrect, as A and B are contradictory; B is false.

Option D ('None of the above'): Incorrect, as A is true.

The correct answer is A, aligning with the CAP syllabus under 'Web Crawler Security' and 'Information Disclosure Prevention.'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
AL
Alex 1 month ago
But what about B? Listing them could expose them more.
KA
Kasandra 1 month ago
I agree, A makes sense. It keeps them hidden from crawlers.
KA
Kathryn 1 month ago
I think A is true. Sensitive files shouldn't be listed.
MO
Moon 2 months ago
Definitely A! It's all about controlling access, not securing files.
JA
Janella 2 months ago
I think B is misleading. You shouldn't list sensitive stuff at all!
JU
Junita 2 months ago
Wait, so listing sensitive files doesn't actually protect them?
CH
Chanel 2 months ago
Totally agree, A is the right choice!
LO
Lonny 2 months ago
A robots.txt file is just a guideline for crawlers, not a security measure.
ST
Stephen 2 months ago
I'm a bit confused. I thought we were supposed to keep sensitive files out of robots.txt, but I also remember something about security practices. Maybe it's A?
MA
Man 3 months ago
I feel like there was a practice question about this, and it was clear that listing sensitive files could expose them. So, I think A is correct.
RO
Rolande 3 months ago
I think we discussed in class that sensitive files shouldn't be listed in robots.txt, but I can't recall the exact reason why.
DA
Dalene 3 months ago
I remember studying that robots.txt is mainly for guiding crawlers, but I'm not sure if sensitive files should be listed or not.
0/2000 characters

Save Cancel