I just wrote some rewrite conditions in order to block a bunch of bot sites. I successfully blocked many of them except three containing a hyphen (dash). So, since they all contain also the word "buttons" I tried to intercept them all with the following Rewrite condition:
RewriteCond %{HTTP_REFERER} ^http://.*buttons.*\.com/ [NC,OR]
The whole rewrite code in my .htaccess looks like this:
RewriteCond %{HTTP_REFERER} ^http://.*buttons.*\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*darodar\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*webextract\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*makemoneyonline\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*semalt\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*ranksonic\.info/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*smailik\.com/ [NC]
The 3 websites I am failing in blocking are:
social-buttons.com
buttons-for-website.com
simple-share-buttons.com
And some variations of those, with subdomain.
My take is that the condition above should intercept them. But I keep getting spammed. Any idea what I am doing wrong?