InMotion Hosting Support Center

Better Tool Than IP Deny to Block Countries IPs

Category: Cpanel

n/a Points
2014-04-18 12:51 pm EST

Hits: 669
There is a tool for Wordpress called

It would save InMotionHosting significant bandwith ( = $ ) if they included this product on an account wide basis.

Manually entering all the IPs for countries not wanted is laborius and can be difficult for your basic user. Certainly including this kind of tool on CPanel would be to InMotionHosting's advantage as well as every user.

Please consider an easier tool than the IP Deny Tool.

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

You must login before you can submit an answer.



9,968 Points
2014-04-18 2:22 pm EST
Hello, and thanks for your question.

The WordFence Security plugin does work great if you have a WordPress website. We also already utilize server-wide ModSecurity rules to protect all of our users from WordPress brute force attacks.

Because not all of our customers run WordPress, it's not something we'd want to include on every account by default. Most WordPress security plugins can cause you to have higher CPU usage as they analyze your traffic.

If you'd like to block a specific country from any website no matter the CMS you're running, you can always use a tool like the IP2Location Block Visitors by Country, then like you said manually put them in your .htaccess file. But take note that the China IP block for instance is about 6,200 lines in itself. That means if you had China and a few other countries with large IP pools blocked via your .htaccess file, your good visitors you're expecting from the USA or other places will have to have every single one of their requests processed through those .htaccess rules which can lead to slower response times.

We can look into possibly developing a better IP Deny plugin for use within cPanel, so that WordPress or any other type of website can be more easily protected. In my experience the best method for this is reviewing your website access logs via a cronjob and if problematic requests are coming in, then add that IP to the .htaccess rules. That way if you just have 1 person from China trying to access your website maliciously you don't need to have the server check through every possible Chinese IP range for all requests, just block the single one causing problems.

Thanks for the suggestions!

- Jacob

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

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


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:
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!