What is CIDR?
CIDR allows you to specify a range of IP addresses using a simplified format. Instead of listing multiple individual IPs, you can now define a range with a single entry by appending a suffix like /24 to the IP address. This makes managing your whitelist more efficient and flexible.
How to Configure CIDR in config.yml:
To use CIDR notation in your config.yml, simply add the CIDR suffix to the IP address. For example:
Code (YAML):
# Whitelisted-IPs
# You can either set an array of static ips with the netmask (/xx) or a whole range of accepted ips.
# An online calculation can be found here: https://www.calculator.net/ip-subnet-calculator.html
ip:
statics
:
['127.0.0.1', '192.168.1.0/24'
]
This update simplifies managing large ranges of IP addresses and enhances the flexibility of your server's security configurations.
Update your plugin now and take advantage of this powerful new feature!