ipaddr icon indicating copy to clipboard operation
ipaddr copied to clipboard

Add reserved? method to detect reserved IP addresses

Open collimarco opened this issue 1 year ago • 1 comments
trafficstars

This library already has private?, link_local?, loopback?, etc.

It would be useful to have a reserved? method: https://en.wikipedia.org/wiki/Reserved_IP_addresses

One of the reasons would be to mitigate SSRF attacks in a simple way, by limiting connections to "normal" "external" IP addresses (!ipaddr.reserved?).

collimarco avatar Nov 03 '24 19:11 collimarco