MediaWiki: Hide drafts of search engines without changing any file in the website directory

MediaWiki: hide drafts of the search engines without changing any file in the website directory,

Is this possible or I must change robots.txt for the drafts beginning as draft: myDraft?