Use this generator to create a .htaccess file to block hitbots based on referering URL. You need the Apache module mod_rewrite to use the generated .htaccess file.
Enter the domains you want to block.
One domain per line. No www.
Enter the URL you want blocked hits redirected to.
Leave blank to just block hits.