In order to prevent the files from indexing in Search Engine, here are the steps you need to follow.
1. Create a file called robots.txt in the home directory of the Site. (i.e public_html)
2. For Example, if you don’t want the files in a folder called admin to be listed in search engines, paste the below code in robots.txt file.
==========
User-agent: *
Disallow: /admin/
==========
3. The above command will prevent the files beginning with name admin from listing in Search engines.