Translate

Search This Blog

Wednesday, 26 March 2025

How to edit robot.txt for blogspot

 To edit the file for your Blogspot (Blogger) site, follow these steps:

  1. Sign in to Blogger: Log in to your Blogger account.

  2. Access Settings: Navigate to the "Settings" section in your Blogger dashboard.

  3. Enable Custom : Under "Crawlers and Indexing," find the option to enable the custom file and turn it on.

  4. Add Code: Paste your custom code into the provided field. Here's an example of a basic file:

    User-agent: *
    Disallow: /search
    Allow: /
    Sitemap: https://yourblogurl.com/sitemap.xml
    

    Replace https://yourblogurl.com/sitemap.xml with the actual URL of your sitemap.

  5. Save Changes: Click "Save" to apply the changes.

You can verify your file by visiting https://yourblogurl.com/robots.txt in your browser.

No comments:

Post a Comment