I know cPanel has the IP Deny manager feature but it doesn't seem to work for IP ranges which I need to block out certain ranges that are using up my bandwidth and not generating any revenue for me. Please advise.
This could help you, please use this code in .htaccess First you will have to find the IP range <Directory /docroot> Order Allow,Deny Deny from 69.28.130. Allow from all </Directory> Code (markup):
If you know CIDR notation, I believe you can also do, 81.0.0.0/8 or 69.28.0.0/16 or if you want to block just a /24 (256 IPs, maybe a dialup pool or something) X.X.X.0/24. Also, before you go blocking any huge ranges, I would check www.arin.net, if it's from inside your country, or your target audience is there, you might want to try smaller ranges. For instance, if you run a site geared towards europeans, you're not gonna wanna block huge RIPE blocks, but you might not care about APNIC blocks.
Let me share you a secret with you. Our hosting company has been blocking all the IP ranges from china. Not sure why they were doing this. And it continued to be like this till one of our usual customer I think he was from US went there for business purpose and was not able to access mail using his Laptop. He submitted a support ticket and then on the IPs(specific IP) was removed from apf. I have question, is this china so much dangerous?? not sure why this happening. Regards
are you sure it was your hosting company and not the chinese government doing the blocking? I know some big hosting companies such as powweb .com will put thousands of sites on one ip address then one of them says something that the chinese gov's keyword blockers block, it blocks the whole IP from china. Of course if your hosting company does block from china it could be because im pretty sure a huge amount of spam comes from here.
I have hackers i've traced to russia and china, what's the easiest way to block both countries entirely?
Thanks for trying FHost but I meant on my website. Hard disk is very secure, unfortunately I don't have the same security provided by the webhost, that's why I want to ban whole countries. Main priority is a local cinemas site I administer, they don't need visitors from other countries anyway.
Have you already request that to your hosting provider? They can block a specific range of ip's to reach only your website.
What's the best way to ban all of china using a linux server with cpanel / whm? If anyone knows please pm me the answer. Thanks!@
Just to let you know, this will block the less knowledgeable user, but if people use TOR (a proxy network) or any anonymous proxy servers you won't be able to ban them. phplife
If your running linux ... CSF or APF...CSF preferably as it has a whole country block feature whereas APF does not. Get CSF here: http://www.configserver.com/cp/csf.html Get APF here: http://rfxnetworks.com/apf.php Also you may want to visit: http://www.ipdeny.com/ipblocks/ for Country Codes to use in CSF configuration. The use the country code in the configuration variable CC_DENY of CSF. HTH!
Beethink ip blocker blocks country ip with htaccess file. It supports ip lists and ip ranges. Beethink ip blocker works as a Windows service.
This plugin helps you to block users from different countries based on their ip address. This is open source application based on Joomla. Only need to download and install plugin from this website - http://www.codefire.org/cfblockcountries.html