Making a Transparent Material which blocks everything behind It

there’s no mention of solution on link you posted. any chance you know how to do this ?