Does Panther have a global helper to check if an IP is a private address?
Last updated: July 21, 2025
QUESTION
Does Panther have a global helper to check if an IP is a private address (IPv4, RFC 1918)?
ANSWER
You can use the IsIPAddressPrivate scalar matching condition for such purposes. By using this condition you can check whether an address falls under a private range as specified in RFC 1918.
Feel free to check the Match Expressions Guide for a more in-depth analysis.
Alternatively, you can also use Python’s standard ipaddress library to perform similar checks programmatically.