pentesting, updated
Review webserver metafiles
Check robots.txt, sitemaps, security.txt, humans.txt and robots meta tags for leaked paths and information.
Goal
Pull the standard metadata files a site publishes — they often reveal hidden paths, contacts and technologies.
How to test
curl -s https://example.com/robots.txt
curl -s https://example.com/sitemap.xml
curl -s https://example.com/security.txt
curl -s https://example.com/.well-known/security.txt
curl -s https://example.com/humans.txt
If robots.txt is blocked or thin, check for page-level directives in the HTML:
curl -s https://example.com | grep -i '<meta name="robots"'
When fetching, some content differs for crawlers — set a crawler user agent:
curl -s -A "Googlebot" https://example.com/robots.txt # or bingbot, or *
What to look for
Disallow entries pointing at admin/staging/backup paths, full URL lists in sitemaps,
staff names and emails in humans.txt, and disclosure contacts in security.txt.
Notes
Disallow is a hint, not access control — treat every disallowed path as a lead to probe.
References
- OWASP WSTG-INFO-03 — Review Webserver Metafiles for Information Leakage.
- Related: search engine recon.