Practical use
CIDR lets you say “this whole block” without listing every IP. It is essential for support, internal networks and perimeter security.
A rule that is too broad can allow more sources than needed; a rule that is too narrow can block legitimate users.
IPv4 and IPv6
In IPv6, prefixes work the same conceptually, but sizes are much larger. A /64 is often a complete local network.