I'm pretty new to htaccess writing and recently had to add commands for blocking referrer spam. Unfortunately the domain I need to block operates with several country suffixes, like .ca, .it. So I had written:
RewriteEngine On
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} kharkovforum\.com [NC, OR]
RewriteCond %{HTTP_REFERER} vi.ebaydesc\.com [NC, OR]
RewriteCond %{HTTP_REFERER} vi.ebaydesc\.es [NC, OR]
RewriteCond %{HTTP_REFERER} vi.ebaydesc\.co.uk [NC, OR]
RewriteCond %{HTTP_REFERER} vi.ebaydesc\.it [NC, OR]
RewriteCond %{HTTP_REFERER} vi.ebaydesc\.ca
RewriteRule .* - [F]
Unfortunately this gives me internal server errors so my page doesnt load (with or without # Options +FollowSymlinks). Im suspecting that this is either because
a) its the same domain over and over, just with different suffixes. Is there any way to shorten this to one line, with a variant for all different county suffixes?
b) there is no www from this domain, only "vi". The full domain is "vi.ebaydesc.co.uk", not "www.vi.ebaydesc.co.uk". But maybe htaccess mistakens that?
Thanks for all your help!