I have written the following code inside my robots.txt file:
User-Agent: Googlebot
Disallow:
User-agent: Mediapartners-Google
Disallow:
Sitemap: http://example.com/sitemap.xml
Is my robots.txt is correct? I only want two user agent to follow my site (i.e., Googlebot & Mediapartners-Google).