A system and method for keeping restricted objects within a confined area that forms part of an institutional site. The confined area having lockable exits, a safe area where the restricted objects are designated to stay, a buffer area adjacent to the first area, and a lock area situated between the buffer area and the lockable exits. The system detects whether the restricted object is in the buffer area or in the lock area and checks whether the restricted object is authorized to leave the safe area. Upon recognizing that the restricted object is in the buffer area and is not authorized to leave the safe area, the system sends a message to a tag of a staff member, instructing to move the restricted object back to the safe area; upon recognizing that the restricted object is in the lock area and is not authorized to leave the safe area, the system sends a locking signal to lockable exits.