How to add X-Robots-Tag: noindex to header because Google is indexing my robots.txt file

I have a Cloudflare page with a custom domain

if i type

Google is showing my robots.txt file being indexed.
A solution for this is to add the X-Robots-Tag: noindex header when serving robots.txt

Any help please.

Use the _headers file to apply custom headers.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.