def is_valid_public_ip(ip_address):
    if not is_valid_ip(ip_address):
        return False
    PRIVATE_IPS_PREFIX = (
        '10.', 
        '172.16.', '172.17.', '172.18.', '172.19.', '172.20.', '172.21.', '172.22.',
        '172.23.', '172.24.', '172.25.', '172.26.', '172.27.', '172.28.', '172.29.',
        '172.30.', '172.31.',
        '192.168.',
        '127.',
    )
    return not ip_address.startswith(PRIVATE_IPS_PREFIX)
Override StreamRequestHandler method.
dataset/ETHPy150Open django-pci/django-axes/axes/decorators.py/is_valid_public_ip--crossover with--dataset/ETHPy150Open chromium/web-page-replay/httpproxy.py/HttpArchiveHandler.setup