These work well in preventing a door being shut. Just open a door and hang one of these on the inside door handle (the side where the door would shut). These provide a cute barrier, which helps in preventing a small child from shutting the door on themselves, but do not expect these to prevent someone slamming a door; I don't think they are intended to be used for this kind of force anyhow. I recommend them for smaller children.