PicoCTF where are the robots Writeup — Find a Hidden Page via robots.txt

Web 2026-12-02 · picoGym · By CTFdojo · ⏱ ...
𝕏 Share
TL;DR

Visit /robots.txt on the challenge site. It has a Disallow line pointing to a page with a random name — open that page and the flag is on it.

PlatformpicoGym
Verified againstsiunam's writeup
CategoryWeb Exploitation
DifficultyBeginner
Tools browser curl

Challenge description

The challenge site only says "Where are the robots?" — a pointer to the one file every website keeps for robots.

Provided: a link to a small website

Stuck? Try a hint before reading the solution

Hint 1

Every website can publish a file that tells robots where not to go.

Hint 2

Open /robots.txt and visit the path it disallows.

Step 1 — Read robots.txt

robots.txt sits at the root of a site and tells search-engine crawlers which paths not to index. Add it to the challenge URL:

$ curl http://CHALLENGE/robots.txt
User-agent: *
Disallow: /[random].html

The file is only a request to well-behaved crawlers — it doesn't protect anything. And by listing the path, it tells everyone exactly where to look.

Step 2 — Open the disallowed page

Visit the path from the Disallow line:

$ curl http://CHALLENGE/[random].html

The page says you guessed what the robots were hiding and shows the flag.

🚩 picoCTF{flag intentionally hidden}

The flag is deliberately hidden — follow the method, you've earned it. 💪

Key takeaways

robots.txt is one of the first things to check on any web target:

Resources

New to CTFs? Start here: beginner's guide to CTFs — what a CTF is, the categories, the tools and a step-by-step plan.

CTFdojo
CTFdojo
Community of ethical hackers writing beginner-friendly CTF writeups and guides.

Got a question or a different approach?

Discuss this writeup with the community on the CTFdojo Discord.

Join the Discord →