Not completely by the specification, but I think this one works as expected.
user-agent: *
disallow: /
user-agent: Googlebot
allow: / user-agent: *
disallow: /
user-agent: Googlebot
allow: /While I don't necessarily agree with the concept of only allowing google to index your site, comparing a search engine which feeds you business to a company reselling your data with no attribution is not really fair in my opinion.
Of course, forging your user agent, disobeying robots.txt or scraping after you were told not to, is wrong ethically.