Block whole countries in CSF
If I add country codes in CSF, does this also stop the particular country accessing a web site on port 80.
-
You should be asking this question over on the CSF forums. It's probably been answered already, so you might search those forums before posting. CSF is not supported by cPanel. If you block a country, you block the country. You should read the warnings in your firewall settings under the Country Code Lists and Settings section as well. 0 -
] CSF is not supported by cPanel.
Wasn't aware of that. Thanks0 -
check CC_DENY option in csf firewall configuration file to block that particular country. Restart the firewall once modification is done 0 -
]check CC_DENY option in csf firewall configuration file to block that particular country. Restart the firewall once modification is done
I've blocked about 6, although reading between the lines CSF suggests only a small list, so I'm not sure i dare increase it much more. My main question really was to determine id it stopped access to the admin side, but still allowed access to the http side.0 -
It blocks any and all network traffic to your server from those IPs, and any traffic from your server toward those IPs. If you have privileged services (like WHM on 2087) that only you need to access, it's much easier and more efficient to just whitelist your IP in csf.allow and remove port 2087 from the open TCP ports list. Blocking countries to subvert abuse is only so effective. I tried the strategy for a long time when I was a forum admin seeing a ton of fake accounts. If I blocked RU, they'd sign up from CN. When I blocked CN, they signed up from proxies in the USA. The trick for me was just securing the signup form to resist bots a bit better. Any strategy to secure your data that doesn't involve blocking IP addresses is usually a better investment of your time. 0 -
I've closed ports 21, 22 and 2087 in CSF already. I've also configured csf to be very aggressive where port scanning is concerned. 0 -
hello do i need to allow all Country Codes in ALLOW in CSF Firewall for my website be visible in all country because my web is not visible in spain ? eukhost.com/forums/f15/country-codes-required-cc_deny-allow-csf-firewall-18835/ 0 -
You should virtually never use the ALLOW for country codes, it opens up your firewall entirely too much. Unless you are specifically denying spain IPs your site should be visible to them unless your hosting provider has blocked something in error. 0 -
AM IN THE US BUT SOME CLIENT HAVING PROBLEM HERE IN THE US TOO THEY CANT SEE MY WEB ONLY IF THE PUT THEY IP IN cphulk whitelistTHE HOW CONT I FIX THIS 0 -
Hello, You should also note that this will affect DNS so if you run a DNS server on your server you should probably note that they will get no DNS responses if they are in a blocked country showing inconsistencies across various DNS servers. 0
Please sign in to leave a comment.
Comments
10 comments