def METHOD_NAME(request: Request, course_key: CourseKey, user: types.User) -> Optional[Response]:
    """
    Check whether any country access rules block the user from enrollment.
    Args:
        request: The request object
        course_key: The requested course ID
        user: The current user object
    Returns:
        Response of the embargo page if embargoed, None if not
    """
    redirect_url = redirect_if_blocked(request, course_key, user=user)
    if redirect_url:
        return Response(
            status=status.HTTP_403_FORBIDDEN,
            data={
                "message": (
                    "Users from this location cannot access the course '{course_id}'."
                ).format(course_id=str(course_key)),
                "user_message_url": request.build_absolute_uri(redirect_url)
            }
        )