I'm trying to prevent referrer spam to a number of websites I run. Then I encountered a lot of lines like this in the log files.
\xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xb9\xd0\xba\xd0\xb0.kz
I'm currently keeping the referrer spam from appearing in my customers' AWStats reports with the following line in my .htaccess file.
RewriteCond %{HTTP_REFERER} ^http(s)?:\/\/([^.]+\.)*domain\.com\/
This seems to work fine, but I seem to having problems with encoded URLs. If I decode the URL to стройка.kz
can I use that as the condition?