Robots.txt is a small file at the root of your site. It tells Google's crawlers and AI crawlers what they are allowed to read. One line can close off your whole site, or just one folder. Careful: to hide a page from Google, it's not the right tool. You need another rule, the robots tag, placed in the page itself.
My take On the sites I follow with Sorank, this file is the first thing I check: one line too many, and neither Google nor AI can read your pages anymore. My advice: in Search Console, open Settings, then the robots.txt report. Then paste the file into Claude or ChatGPT and ask which pages it blocks.
I'm Thibault Besson-Magdelain, founder of Sorank and an SEO expert. Every morning, I explain the news from Google and AI in plain words, and tell you what to do.