def METHOD_NAME():
    """
    The function will open the host file and add the block-list websites to
    the file if it is not already present and redirect it to the localhost
    for blocking
    """
    try:
        # Opening the host file in reading and writing mode
        with open(host_path, "r+") as h_file:
            content = h_file.read()
            for website in block_list:
                # Website is already blocked
                if website in content:
                    pass
                # To redirect the website to be blocked
                else:
                    h_file.write(redirect + "\t" + website + "\n")
        return 1
    except PermissionError:
        print(
            "\nTry running the cmd in admin mode and "
            "then run this code to enable this functionality!"
        )
        return 0
    except FileNotFoundError:
        print("\nThis functionality is not supported for your OS!")
        return 0