How do I prevent my site from being indexed by search engines?

Edit or create robots.txt file

The robots.txt file needs to be at the root of your site. If your domain is it should be found on your website at:

Disallow all search engines from crawling website:

You can disallow search engine from crawling your website, with these rules:

User-agent: *
Disallow: /