Generate a custom robots.txt for your site in seconds — copy or download it.
User-agent: * Disallow: /wp-admin/
In the site root (example.com/robots.txt) — Google ignores it anywhere else.
No — robots.txt only blocks crawling. To keep a page out of Google, use noindex.
A Disallow: / line blocks your entire site from Google. Review the file carefully before uploading.