The paper evaluates various machine learning classification models for detecting and preventing SQL injection attacks, with a focus on identifying the best-performing model in terms of accuracy. The study finds that the Naïve Bayes classifier achieves the highest detection rate of 97.06%, followed by others like logistic regression and support vector machine. Additionally, it discusses the methodology, challenges in data labeling, and emphasizes the integration of machine learning techniques in enhancing SQL injection prevention strategies.