RewriteCond %{HTTP_REFERER} ^domain.com [NC]
RewriteRule .* index.php [F]
RewriteCond %{HTTP_REFERER} ^domain.com [NC, OR]
RewriteCond %{HTTP_REFERER} ^domain2.com [NC, OR]
RewriteCond %{HTTP_REFERER} ^domain3.com [NC]
RewriteRule .* index.php [F]
####remove many slashes####
RewriteCond %{THE_REQUEST} \ (.*)//+(.*)\ [NC]
RewriteRule (.*) %1/%2 [R=301,L]
####remove trailing ;,.()[] ####
RewriteCond %{REQUEST_URI} ^(.*[;,.\(\)\[\]]+)$
RewriteRule ^(.*[^;,.\(\)\[\]]+) /$1 [R=301,L]
####add trailing slash####
RewriteCond %{REQUEST_URI} !^(.*\/[^\/]+\.[^\/]+)$
RewriteRule ^(.*)([^/])$ /$1$2/ [L,R=301]