look at https://github.com/DavidMoore/ipfilter and find a way to implement this in the app
look at https://github.com/DavidMoore/ipfilter and find a way to implement this in the app