When creating an XML sitemap, you’ll want to include links to all the pages you want search bots to crawl.   If you don’t want a page crawled, you should not put it in your XML sitemap. However, that won’t stop a search engine crawler from finding it.
You should include the pages you don’t want crawled in your robots.txt file.  Check out our blog post about robots.txt after this video if you want to learn more.  A great tool for generating a sitemap for your website is XML-Sitemaps.com. If your website is 500 pages or less, you can use this tool for free.
If you use a content management system like WordPress, there are plugins available that make and update your XML sitemap for you. Let’s talk about how to upload your XML sitemap.