IP Range Twig Filter to determine if a given IP falls within a larger IP Range (IP/CIDR netmask).

Developed by Rob Erskine


This will either return true or false based on the given criteria.

{{craft.request.getIpAddress() | ipRange('38.111.4.0/24')}}

Plugin Development 101

Don't miss any Craft tips, tricks, and community updates