This code can block domestic IP. Of course, by changing the IP library address (cn.zone file), you can block specific IPs and IP segments. 1. Block Chinese IP Then, execute: 2. Unblock Chinese IP Then, execute: via: https://www.lowendtalk.com/discussion/141800/blocking-attack-ips-ddos-ips-from-china 3. Further optimized script <br />This script is based on the IP segment provided by ipdeny.com. The above script can add and delete IP segments accurately and in real time, and each has its own advantages and disadvantages. 2. Use Here we take China as an example. If you want to block other countries, please modify the last code parameter yourself.Adding rules Start blocking List of blocked countries Unblock For other country codes, please visit: http://www.ipdeny.com/ipblocks via: https://lolico.moe/projects/block-countries-ips.html |
<<: Hostsolutions: €1.99/month/2GB memory/30GB space/30TB traffic/OpenVZ/Romania/No copyright
>>: 5wire: £4.5/month/1GB RAM/10GB SSD space/unlimited traffic/KVM/UK
DataPacket is a British merchant that was establi...
GBServers, a British hosting provider, claims to ...
ChicagoVPS, an old and stable business, now has 3...
HOSTIKO is a Ukrainian merchant that mainly provi...
IMIDC (Rainbow Network) is a local operator in Ho...
DigitalOcean is an old and stable business that m...
Panyiyun, a Chinese business, has just been estab...
TerraHost, a long-established Norwegian hosting p...
Sharktech, a long-established American hosting co...
AuroraCloud, a Chinese merchant, was established ...
HostHatch, an old hosting provider, has been intr...
Eqservers, a Dutch hosting provider, was founded ...
Each VPS shares 100Mbps bandwidth. Have ROOT priv...
2Sync.co, an Indian hosting company, seems to hav...
SmartResel is a foreign merchant. I have introduc...