0

I've been getting referral spam on my site. I've tried several options to block it, but it still hits it. I think it has to do with being special characters on the referral?

This is the referral source: с.новым.годом.рф

This is my vhost section:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*C.новым.годом\.рф/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*xn--b1aube0e.xn--c1acygb\.xn--p1ai/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*C.новым.годом\-for\-website\.рф/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*xn--b1aube0e.xn--c1acygb\-for\-website\.xn--p1ai/ [NC,OR]
RewriteRule ^(.*)$ – [F,L]

I thunk it has to do with the special characters? Or maybe a problem with the regex? Please help.

3
  • Could you provide some examples of the logs? Jan 11, 2016 at 19:21
  • The logs were not showing "referral"... and I haven't had a hit from them today. The referral shows in my Google Analytic.
    – smorhaim
    Jan 11, 2016 at 19:30
  • It would be useful to show the referral in the logs so you would be sure what Apache is receiving. You could change your logs to use the Combined Log Format (as described in httpd.apache.org/docs/2.4/logs.html) Jan 11, 2016 at 19:33

0

You must log in to answer this question.

Browse other questions tagged .