How do I make sure /feed and /rss2 pages do not get crawled by Google?

#570962
  • Resolved Anonymous
    Rank Math free

    I’m currently making blog posts and the actual blog posts are being indexed, but these pages with /rss2 and /feed at the end are being crawled by Google how can I prevent this please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous
    Rank Math free

    Hi Spray,
    Hope so you’re doing well, to prevent Google from crawling your RSS feed pages, you can use the “robots.txt” file to disallow the indexing of those pages. Add the following lines to your “robots.txt” file:

    User-agent: *
    Disallow: //rss2/
    Disallow: //feed/

    This will block Google and other search engines from indexing any pages that end in “/rss2” or “/feed”. You can also use the Rankmath plugin to add this code to your “robots.txt” file.

    Hope so you’re doing well!

    Regards,
    Bryce June

    Anonymous
    Rank Math free

    Thank you Bryce, I have done so.

    Hello,

    It seems that you already marked this ticket as “Resolved”.

    Do you still need our assistance regarding this issue?

    Looking forward to helping you.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.