import requests


def is_already_blocked(ip, firewall_ip_and_port):
    """ This function checks if {ip} is already blocked in the firewall.

    :param ip: IP to check.
    :param firewall_ip_and_port: URL of firewall wrapper.
    :return: True if IP if already blocked on the firewall, False otherwise.
    """
    return requests.get(f"http://{firewall_ip_and_port}/firewall/{ip}").ok