need help with .htacess and mod rewrite

I'm trying to block some bot traffic comming to my site and I used the following in .htacess:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?badsite.com.*$ [NC]
RewriteRule .* google.com [L]

however, whenever I try and access my site it then gives me a 500 Internal Server Error. Any idea why I'm getting the Error?

 

 

 

 

Top