These commands will prevent certain ips and websites from accessing your website.

Order Allow, Deny
Deny from 123.45.6.7
Deny from 891.01.1.2
Allow from all
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} blocksite\.com [NC]
RewriteRule .* - [F]