You can use any WordPress plugin for editing .htaccess.
Warning! This is recommended only for advanced users since incorrectly setup .htaccess can break your blog or get it deindexed. If editing .htaccess made your blog unavailable, see how to reset it.
How can I block bots and crawlers?
We recommend using our Spider Blocker plugin.