Prevent login page of on-prem instance from being index on Google

Is there a way to prevent the on-premise version from being index on Google by using a robots.txt or setting the noindex with the meta tag?

We have a feature request for this! I'll reach out here if I get any updates