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

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

ErrorDocument 410 https://foolsperch.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://foolsperch.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://foolsperch.com/img/%{TIME_SEC}\.jpe [NC,R,L]

Display sample image