The noindex directive is the reliable way to exclude a page from the results: thank-you pages, internal search results, login pages or duplicate content.
Be careful not to confuse it with robots.txt: a page blocked in robots.txt is not crawled, so Google never sees its noindex tag and may still show it if other sites link to it.