In WordPress dashboard, go to the settings options. Find out the reading options and there you will find a combo box that Is search engine will index this site or not. Basically it is the search engine visibility field. If you close this option search engine will not index your site.