How to add robots noindex meta tag to login page head e.g. https://my-domain.com

Dear community,

I am trying to figure out a way to at the meta tag to the head of the login page available under a certain domain eg https://my-domain.com

I have no idea how to add this tag to the header. Does it work if I just add it to the index.html in the main directory?

Thanks for suggestions and your help!

If you hardcode your meta tag in templates, it will go away with each update. You could use the theming system but that’s depreciated and you’ll still have to check the change after each major update.
The proper way to do this would be a dedicated app that would inject the meta tag when rendering the login page.

Thank you for your answer.

I was wandering if such an app exists but that isn’t the case.