def get_first_proxy_ip(request):
    """
    Returns the IP of the first proxy of the request or None.
    """

    proxies = request.META.get('HTTP_X_FORWARDED_FOR', None)
    if proxies:
        proxy_ips = proxies.split(', ')
        if len(proxy_ips) >= 2:
            return proxy_ips[1]

    return None