Here is a great source detialing how to setup an even more efficent .htaccess code, and how to remove these referrals from analytics…
https://riseofweb.com/google-analytics-htaccess-and-spam-bot-referrals/
# BEGIN BLOCK SPAM REFERRALS
RewriteEngine On
RewriteCond %{HTTP_REFERER} (?:savetubevideo|srecorder|semalt|kambasoft|ilovevitaly|iloveitaly|net\.hts|priceg|darodar|econom|buttons\-for\-website|blackhatworth|hulfingtonpost|adviceforum)\.((?!\.).)*?$ [NC]
RewriteRule .* - [F]
# END BLOCK SPAM REFERRALS