Robots.txt.liquid not updating Robots.txt

I have tried to make a robots.txt.liquid file

i seem to have it all set up but doesn’t seem to show up on /robots.txt

Any ideas?

This is my file ( code below)

Trying to add Disallow: /services/login_with_shop/ to our robots but doesn’t seem to add.

Any help be great please as my Google search consol is getting flooded with 5xx for this URL

we use Shopify as our ecommerce platform

{%- comment -%}

Caution! Please read https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt before proceeding to make changes to this file.

{%- endcomment -%}
{% for group in robots.default_groups %}
{{- group.user_agent -}}

{% for rule in group.rules %}
{{- rule -}}
{% endfor %}

{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}

{%- if group.user_agent.value == ‘*’ -%}
{{ ‘Disallow: /services/login_with_shop/.’ }}
{%- endif -%}

Hey LaurneceKay
The robots.txt file will not refresh instantly. If it doesn’t work, try placing after:
{%- for rule in group.rules -%}
{{ rule }}
{%- endfor -%}

If still does not work you can simply copy the whole robots.txt file from the frontend with all directives in your template and add a new disallow rule.

Thank you we just ended up paying $15 for a plug in which seemed to make it easier.

Thanks for your reply