import ipaddress


def authorized_user(user):
    """Check if we want to register this user's edits or not."""
    auth = False

    # Exclude bots
    ban_list = ['NaggoBot', 'ZéroBot', 'HerculeBot']

    # Exclude anonymous
    if user not in ban_list:
        try: 
            ipaddress.ip_address(user)
        except ValueError:
            auth = True

    return auth