Unable to block .RU domains

Category: Fighting Spam

renaissancer
Asked:
2013-05-22 1:33 pm EST

Hits: 1,575
Unable to block .RU domains from accessing my web site. I have edited the .HTACCESS file with the proper parameters.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Blocked specific sets of .RU domains, they are still managing to get past the blocks...
renaissancer
5 Points
2013-05-28 10:35 am EST
Try using the following htaccess code.

#Block Russian referrer web sites #
RewriteCond %{HTTP_REFERER} \.(ru)/ [NC]

This should block any .ru domain.
jamesr
5,889 Points
2013-05-28 10:54 am EST
Made the suggested changes to the .htaccess file, still unable to prevent .RU domains from accessing a specific directory on my web site. Not thrilled..
renaissancer
5 Points
2013-05-30 05:19 pm EST
Tried the suggested htaccess code and still they persist on accessing a directory on my web site. Ended up DELETING the directory on my web site that was being accessed. Not a logical solution.
renaissancer
5 Points
2013-05-31 09:40 pm EST
Sorry for all the trouble with the .RU domains accessing your site. It's difficult to say why the .htaccess is not preventing the access unless that particular folder had some sort of code compromise in it. I'm at least glad you have resolved the .RU domains accessing your site.

Best Regards,
James R
jamesr
5,889 Points
2013-06-03 10:27 am EST

OTHER ANSWERS

0

Arn
Staff
15,960 Points
2013-05-22 6:57 pm EST
Hello Renaissancer,

I'm sorry to hear that you're having problems with blocking out the country domains. I did take a quick look at your .htaccess file and the problem is that you need to use a different format for the listed IPs. Basically, you should be using a different format and a different set of IP ranges. In fact, we have an article that gives you a link to download the correct entries for your .htaccess file. You can see that information in the article titled How to block a country's IP ranges in .htaccess. Go to the link provided in this article, download the proper .htaccess entries, REMOVE your old entries, and then add these. This will be the complete list of ALL the IP ranges in the Russian Federation.

Please let us know if this works out for you, or if you require further assistance.

Regards,

Arnel C.

You must login before you can post a comment about this answer.

0

Arn
Staff
15,960 Points
2013-05-30 6:40 pm EST
Hello Renaissancer,

Sorry to hear about the problems you've been having with blocking the .RU domains. I sat down with one of our systems people and discussed the issue. We need to clarify a few things so that you understand the changes that we made and the effect they will have for traffic trying to reach your website.

First, it is important to know that rules to deny access by the IP range are definitely working. The problem is that a .RU site is not necessarily hosted within those IP ranges. It might be hosted in a country you're not blocking. So the IP range blocking ONLY works for the IP ranges that are listed. For example, if a .RU site was hosted on a USA server, then the deny by IP range won't work because you're only denying the IP ranges for Russian networks.

In order to specifically block domains with a .RU extension, you would need to actually block the referer. James R. attempted to give you a code to block the REFERER. And the referers that you were specifying included the .RU domains. However, the initial code was not working. We verified this with a test (using Google .ru to hit the website from a .RU website). However, the code was corrected after we reviewed it. Literally, the code is basically saying, "If anyone is linking from a domain with the extension of .RU, then deliver a 403 forbidden error message" - this is what the current code is set to do. The .htacess code was changed in order provide you a specific solution to block the referers that you do not linking to your website.

Please remember that this means that ANYONE trying to link to your website with those specific country domains will not be able to access your site. They will see a 403 Forbidden error.

I hope this helps to clear up the issue! It should prevent traffic from the specific country domains you have specified. Let us know if you require further assistance!

Regards,

Arnel C.

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!