import re


def check_url_protocol(url):
    """Ensures a given url has the http:// protocl."""
    if re.compile('http://').match(url) == None:
        url = 'http://' + url
        return url
    else:
        return url