Block the IP of the selected country in Firewall
Firewall should be able to block the IP of the selected country. I have a lot of traffic from the IP 5.10. *. *

-
EhudZ commented
Hi,
Would BitNinja remove the uage of the Plesk built-in FireWall IPTables and IPSet, as it requires their usage:
https://doc.bitninja.io/installation/ubuntu1004.htmlWhat does the non-pro version provide?
And, is the Plesk installation of the extension reversable exactly to pre-installation configuration
(for example Plesk FireWall manual rules)? -
Avinesh commented
Use BitNinja. Works well with Plesk. We use them to block entire countries from our servers.
-
Anonymous commented
Idea 2013 and now 2021. yet not implemented. Plesk becoming hopeless for me.
-
Júbilo Estudios commented
Block 5.10.0.0 - 5.10.255.255 = 65,536 IPs. Is not a practical solution, china for example has 356,936,737 IPs. Even just blocking the IPV4 either, many attacks we receive come from IPV6 from Dubai for example.
-
EhudZ commented
spams comes from all over, not only from 64K IPs...
-
Anonymous commented
Additional note:
If you block the ip*.*.*.*
Your server is protected.
(including from yourself)
-
Fadi Asbih commented
You can use the Plesk Firewall to block all traffic from this network: 5.10. *. *
1) Create a custom firewall rule and name it i.e. "Block Suspicious IPs" as described here: https://support.plesk.com/hc/en-us/articles/360000875494-How-to-block-an-IP-address-in-Plesk-Firewall
2) in the Sources add the the network in this format: 5.10.0.0/16 (s.screenshot)
3) Save and Apply the new rule
This will block all these IPs: 5.10.0.0 - 5.10.255.255, meaning it will block 65,536 IPs.
-
Anonymous commented
+15
-
Azurel commented
@Developer take a look in this https://www.ipdeny.com/ipblocks/
Make a List like this with a checkbox and clear list maybe daily and add selected country-ips in it. It can't be that hard and would significantly improve safety. ;)
// cn=china
firewall-cmd --permanent --ipset=blocked_country_ipv4_cn --add-entries-from-file=ipv4_cn.zone -
Azurel commented
Is it not possible to use this?
https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/I have hundreds of fail2ban banned bot ips from russian and china. I want stop any traffic from there.
-
Anonymous commented
This feature would allow me to target my customers better, whist also making my sites more secure by blocking those countries that frequently try to hack my sites.
-
EhudZ commented
All of these deny country tools, are REALLY EASY to build. Their code is like 200 lines, and they use free real-time updating DB of IP associated to countries.
This should be a built-in Plesk tool, and no need for a monthly payment for it. It's worth 5 USD a year, not 5 USD a month... -
wolf commented
+1
-
Anonymous commented
+1
-
Configbox commented
Hello
Today we have publish our last extension : https://ext.plesk.com/packages/e1726d92-7911-40c2-9b1f-37568c579f64-deny-country
This extension isn't an firewall but act on htaccess to limit website access to wanted countries. -
SB commented
(D)DoS Deflate Interface (paid) extension does the job of blocking country pretty well (actually only on IPv4)
-
SB commented
Seien Sie vorsichtig, wenn Sie die USA blockieren ... nützliche Dienste von Google oder anderen Anbietern können ebenfalls blockiert werden!
-
Anonymous commented
dann könnte man endlich China, Rußland und USA sperren.
-
Daerik commented
I heard a lot of users complaining about going to cPanel. You could achieve this using ModSec and a GeoIP database. You can even activate/deactivate rules at the subscription level for full customization for your clients and their needs. I get it. A lot of you could only "program" a WordPress site, but for those who love full customization Plesk is where it's at. Perhaps I'm just a fanboy, I don't know. Research the topic. Find a work-around. Keep having your friends/associates vote this up!
-
mydragz commented
I recommend you use Cloudflare as one of the best option.