modifying .htaccess file to block social spamming

My question is where exactly to add code to my .htaccess file. I learned with 301 redirects and my hosting server, that the modification had to be placed above the standard WordPress Rewrite code as this example:

RewriteCond %{HTTP_HOST} ^XXXX.com$ [OR]

RewriteCond %{HTTP_HOST} ^www.XXXX.com$

RewriteRule ^landscape-design/$ “http://XXXX.com/residential/res-landscape-design/” [R=301,L]

RewriteCond %{HTTP_HOST} ^XXXXX.com$ [OR]

RewriteCond %{HTTP_HOST} ^www.XXXX.com$

RewriteRule ^residential-portfolio/$ “http://XXXX.com/portfolio/photo-gallery/” [R=301,L]

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

SO, my question is where exactly in the above code would I place the code below? My inclination is to insert right above the </IfModule> closing tag.

I want to add the following to my .htaccess file on each of my client websites:

## STOP REFERRER SPAM ##

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?anticrawler.org [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?bestwebsitesawards.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?blackhatworth.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?buttons-for-website.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?econom.co [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?darodar.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?hulfingtonpost.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?humanorightswatch.org [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?ilovevitaly.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?7makemoneyonline.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?o-o-6-o-o.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?priceg.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?social-buttons.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?semalt.com [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?smailik.org [NC,OR]

RewriteCond %{HTTP_REFERER} ^([^.]+.)*?simple-share-buttons.com [NC]

RewriteRule .* – [F]

## STOP REFERRER SPAM ##

Thank you for your help

Ben