# Begin IP blocking #
Order Allow,Deny
Deny from
Allow from all
# End IP blocking #

ErrorDocument 404 your 'file not found' error file name here

ErrorDocument 410 https://utterblackness.com/410.htm
Redirect 410 /put any persistent bad link here

RewriteEngine On
# Send user to a Forbidden page if javascript commands appear in URL #
RewriteCond %{QUERY_STRING} (;|%3B|////|javascript) [NC]
RewriteRule .*$ https://utterblackness.com/whatever_you_are_trying_to_hack/ [NC,R,L]

# Display random image on a site that is hotlinking to an image on your site #
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?your-site-here.com [NC]
RewriteRule \.(jpg|gif)$ https://utterblackness.com/img/%{TIME_SEC}\.jpe [NC,R,L]

Display sample image