confine within

confine (someone or something) within (something)

To restrict a person or animal to a particular place or area. Don't worry, I confined the baby within her playpen. Maddy is scared of dogs, so we need to confine Fido within the back yard.
See also: confine, within
Farlex Dictionary of Idioms.

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?
See also: confine, within
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs.
See also:
  • confine (someone or something) within (something)
  • confine or an animal to
  • confine to
  • confine
  • confine (someone or something) to (someone or something)
  • put (someone or something) inside (something)
  • scare the hell out of (one)
  • scare, annoy, etc. the hell out of somebody
  • annoy
  • scare the devil out of (one)
References in classic literature
As for elves and fairies, and other such mummery, I purposely omit the mention of them, as I should be very unwilling to confine within any bounds those surprizing imaginations, for whose vast capacity the limits of human nature are too narrow; whose works are to be considered as a new creation; and who have consequently just right to do what they will with their own.
Yet, like the horses, they are confine within certain limits; for they have not crossed the centra chain of hills, nor would they have extended even so far a its base, if, as the Gauchos informed me, small colonies ha not been carried there.
However with the passage of time every institution will settle down and confine within its limits, he added.