In order to block China and Russia I'd recommend to create separate file that is included in your httpd.conf. Apache (if apache is used) is C language based program and once it loads the long IPs list in the memory will react super fast to any calls from IPs in the list. Unless you don't have access to edit the httpd.conf I wouldn't recommend adding this line in .htaccess file.

The list contains 8864 Russian networks and 5073 Chineese.

1. Download [Block China and Russia IP Networks](https://sourceforge.net/p/russiaandchinaipfiltering) in .htaccess

2. Save the file in the folder where httpd.conf is and name it the way you want. I used httpd.ip-filter.conf

3.Open the httpd.conf and include the line " include /path/to/the/httpd.ip-filter.conf " (without the quotes).

4. Save the conf and restart the apache

If you don't get any errors you should be all set!

If you don't know what you're doing, then just avoid using this list and its contents.

Project Activity

See All Activity >

Follow Russia and China IP Filtering

Russia and China IP Filtering Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
0
0
0
0
1
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

User Reviews

  • It is a virus that opens a hole in your server. Put it and your site immediately hacked.
Read more reviews >

Additional Project Details

Registered

2013-08-03