Google webmaster FAQs suggest that this will exclude all xml files from search:

User-agent: Googlebot
Disallow: /*.xml$

Is this legal for other bots as well?

User-agent: *
Disallow: /*.xml$

Yes, this is valid. Whether other bots actually understand and obey is completely up to them, though!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.