The Internet has transformed into a hub for a wide array of illegal activities, ranging from annoying spam ads to financial scams, all thanks to advancements in modern technology. With the constant enhancements in network technology, data traffic on the Internet is ballooning in both volume and scope. Consequently, the complexity and prevalence of cyber threats and attacks are on the rise, with websites becoming the prime targets for hackers. These intruders, or hackers, embed harmful content into web pages with the intent of carrying out nefarious activities. They employ various tactics, such as hacking into computers or trying to harvest information through compromised or malicious websites. Some of these tactics involve injecting malicious software into web links. Therefore, it has become more critical than ever to identify and block such websites before the average user can stumble upon them. In this paper, we propose a method that utilizes machine learning techniques to detect fraudulent websites. We evaluate the prediction accuracy of different machine learning classification methods in this study. We trained our model using various algorithms, including Naive Bayes, Support Vector Machines (SVM), K-Nearest Neighbors (K-NN), Decision Trees, Random Forests, and AdaBoost. Ultimately, we employed an ensemble approach and achieved an outstanding accuracy rate of 99.98%, surpassing other methods in effectiveness.