Robots.txt

User-agent: *
Disallow: /magento/
or
User-agent: *
Disallow: /
or
User-agent: Googlebot
Disallow: /magento/

Source info: http://helloit.webege.com/2010/07/como-instalar-magento/