Implementing stop words or phrases

If i want to stop gpt to generate some words or phrases, is logit_bias the only way to do so. Are there any other techniques?