My pc is wwwroot is getting indexed!

i got a live ip machine and google is indexing my wwwroot folder. i work remotely too for my purposes but i need it not be indexed on any search engines. how can i stop it?

Use a robots.txt file to block it with the following instructions:

User-agent: *
Disallow: /