confine someone or an animal to something
to limit someone or an animal to a particular place; to imprison someone or an animal in a particular place. Would you please confine the dog to the basement? She confined herself to the small room for over a year because of her fear of crowds.
confine (someone or an animal) within something
to contain someone or an animal within something. We were unable to confine the dog within the yard. Could you confine all your car-repair mess within the garage?
confine something to someone or something
to limit something or the doing of something to a person or a thing. Please try to confine your comments to John. Can we confine tonight's discussion to the agenda?