How to allow user-agent access to private discourse?

Wouldn’t this be done in your sites robots.txt file?