An apparatus for making beverages using capsules containing a food substance, comprising: an extraction unit in which an extraction chamber is made in which, in use, a capsule can be inserted, the extraction unit in turn comprising a first part and a second part, which are movable, at least one relative to the other, between a home position in which they are at a distance from one another and in which the extraction chamber is open to allow the insertion of a capsule in it, and an extraction position in which they are coupled together and close the extraction chamber; an infeed section where, in use, a capsule can be fed to the apparatus, a feed path for the capsule in the apparatus extending from the infeed section; means for making a beverage for, in use, making water circulate through a capsule contained in the closed extraction chamber, thereby causing the beverage to be formed, and for supplying the beverage to the outside of the apparatus; at least one image acquisition device positioned along the feed path outside the extraction chamber, and designed, in use, when the capsule is positioned in an image capture zone located along the feed path, to capture images of at least an identification portion of the capsule on which a graphical element is present and visible; the image acquisition device operating at least in the range of visible light; an electronic processing unit connected to the image acquisition device for receiving the images detected by it; wherein the electronic processing unit is programmed to selectively enable or not enable the making of a beverage by performing the following operating steps: electronically comparing a first image detected by the image acquisition device, in which the identification portion of the capsule and the related graphical element are visible, with one or more reference images saved in the apparatus; verifying if there is a match between the graphical element visible in the first image and that visible in at least one of the saved reference images; and enabling making of the beverage if and only if said match is verified; characterised in that the image acquisition device continues acquiring images even after the acquisition of a first image for which supplying of the beverage has been enabled, and in that the electronic processing unit is also programmed to examine said further images to determine if, after the acquisition of the first image for which said match has been found, the movement of the capsule has continued towards the retaining means or if it has been inverted, and to inhibit supplying of the beverage if the movement has been inverted. an extraction unit in which an extraction chamber is made in which, in use, a capsule can be inserted, the extraction unit in turn comprising a first part and a second part, which are movable, at least one relative to the other, between a home position in which they are at a distance from one another and in which the extraction chamber is open to allow the insertion of a capsule in it, and an extraction position in which they are coupled together and close the extraction chamber; an infeed section where, in use, a capsule can be fed to the apparatus, a feed path for the capsule in the apparatus extending from the infeed section; means for making a beverage for, in use, making water circulate through a capsule contained in the closed extraction chamber, thereby causing the beverage to be formed, and for supplying the beverage to the outside of the apparatus; at least one image acquisition device positioned along the feed path outside the extraction chamber, and designed, in use, when the capsule is positioned in an image capture zone located along the feed path, to capture images of at least an identification portion of the capsule on which a graphical element is present and visible; the image acquisition device operating at least in the range of visible light; an electronic processing unit connected to the image acquisition device for receiving the images detected by it; electronically comparing a first image detected by the image acquisition device, in which the identification portion of the capsule and the related graphical element are visible, with one or more reference images saved in the apparatus; verifying if there is a match between the graphical element visible in the first image and that visible in at least one of the saved reference images; and enabling making of the beverage if and only if said match is verified; characterised in that the image acquisition device continues acquiring images even after the acquisition of a first image for which supplying of the beverage has been enabled, and in that the electronic processing unit is also programmed to examine said further images to determine if, after the acquisition of the first image for which said match has been found, the movement of the capsule has continued towards the retaining means or if it has been inverted, and to inhibit supplying of the beverage if the movement has been inverted.