A tamper-proof apparatus of a type for automatically dispensing medication having a housing with a plurality of medication holding compartments each having an open bottom therein. The compartments can either be of a type which are open at the top so they can be filled manually, or they can be of a prepackaged type having a closed top and a slide-open bottom which are available from and returnable for refilling to a pharmacy. A belt is disposed under the medication holding compartments and the belt has at least one opening therein. A microprocessor is used to control a motor or the like for selectively advancing the belt so that the opening therein moves from beneath one compartment to a position beneath another compartment whereby when the opening moves below a particular compartment, pills contained in such particular compartment will drop down through the openings. The microprocessor can be programmed by authorized personnel to dispense medication from any one of the compartments at any one time. It can be programmed for any particular length of time, being limited only by the number of pill holding compartments and such number can be large to accommodate almost any need. A lid having a lock thereon can be controlled by the microprocessor to allow access only to persons knowing a certain code.