Generate a robots.txt file that controls which parts of your site search engines are allowed to crawl.
User-agent: * Allow: / Disallow: /admin Disallow: /private Sitemap: https://example.com/sitemap.xml
Save it as robots.txt in the root of your domain, e.g. https://example.com/robots.txt.