The damage from the fire 'was restricted' to the rear of the building. [=the rear of the building was the only part damaged by the fire]
The doctor 'restricted' her 'to' a low-fat diet. [=she was only allowed to eat a low-fat diet]
Only a 'restricted' [='limited'] number of students will be allowed in the class.
(..) if I wanted to ask you something. Ask away, dear boy. Ask away. Well, you see the other day, I was in the library in the restricted section, and I came across something rather odd about a very rare piece of magic. Yes, what was this rare piece of magic? (..)2009 Harry Potter and the Half-Blood Prince
(..) They might misunderstand. Go on. I was in the library the other night. In the restricted section. And I picked something rather odd about this rare magic. I thought perhaps, you could illuminate me. It's called, as I understand it, (..)2009 Harry Potter and the Half-Blood Prince