A childproof closure for a dispensing apparatus (5) having first bayonet fastening means (20), wherein the closure (40, 50, 80, 100) has second bayonet fastening means (21). One of the two bayonet fastening means (20, 21) has bayonet lugs (30, 32) which can be introduced into corresponding socket elements (25, 27) of the other bayonet fastening means (20, 21). Both bayonet fastening means (20, 21) moreover have coding elements (13, 23, 35, 38) for a preset alignment of the closure (40, 50, 80, 100) and of the dispensing apparatus (5). The closure (40, 50, 80, 100) has a closure element (40, 50) having first engagement elements (43, 70) and a securing cap (80, 100) which at least partly covers the closure element (40, 50) and has second engagement elements (75, 130). The securing cap (80, 100) and the closure element (40, 50) are connected cohesively strongly, but rotatably with respect to one another, by means of shape-matched elements (58, 60, 90, 120). The securing cap (80, 100) is configured at least partly elastically deformably such that the first and second engagement elements (43, 70, 75, 130) can be brought into engagement with one another by pressing the securing cap (80, 100) toward the closure element (40, 50).