confine = to limit an activity, person, or problem in some way
"I was confined to my house because of COVID."
refrain = "to avoid doing or stop yourself from doing something"
"Please refrain from feeding the birds."
constrict = to limit an action or behaviour
"Please constrict yourself to answering the topic as indicated."
restrict = to limit someone's actions or movement, or to limit the amount, size, etc., of something
"The students were restricted to only using the canteen during the daytime."