def validate_custom_page_path(path):
    """
    Check if a custom page path is valid or not,
    to prevent malicious requests.

    :param path: custom page path (url path)
    :return: valid or not
    """
    sp = path.split('/')
    if '.' in sp or '..' in sp:
        return False
    return True
