In recent years, the use of counterfeit drugs has become a significant public health concern globally. To tackle this problem, various technologies have been employed, including blockchain, due to its inherent characteristics such as transparency, immutability, and decentralization. In this paper,a method is proposed for detecting fake medicines using blockchain technology. The system tracks the entire lifecycle of a drug, from manufacturing todistribution, and maintains a decentralized ledger that records each transaction. This approach enables stakeholders to verify the authenticity of drugs inreal-time, ensuring that only genuine medicines reach patients. The system’seffectiveness in detecting counterfeit drugs is evaluated using a simulated environment, and the results show that the proposed method can effectively detectfake medicines with high accuracy and reliability. Overall, the use of blockchaintechnology in the detection of counterfeit drugs provides a promising solutionto the issue of fake medicines in the healthcare industry.