def white_listed(url, white_listed_urls=None, white_listed_patterns=None):
    """
    Check if link is in the white listed URLs or patterns to ignore.

    Args:
        - url                    (str) : link to check.
        - white_listed_urls     (list) : list of white-listed urls.
        - white_listed_patterns (list) : list of white-listed patterns.

    Returns:
        (bool) boolean for whether link is white-listed or not.
    """
    white_listed_urls = white_listed_urls or []
    white_listed_patterns = white_listed_patterns or []
    if url in white_listed_urls:
        return True
    for white_listed_pattern in white_listed_patterns:
        if white_listed_pattern in url:
            return True
    return False
