IMPLEMENTASI ALGORITMA DECISION TREE DAN RANDOM FOREST PADA SISTEM DETEKSI PHISHING URL REAL-TIME BERBASIS WEB
DOI:
https://doi.org/10.71282/jurmie.v3i11.2775Keywords:
Phishing, URL detection, Random Forest, Decision Tree, browser extension, real-timeAbstract
Phishing is one of the most common cybersecurity threats because it uses fake URLs to steal users’ sensitive information. This study aims to implement the Random Forest algorithm in a web-based, real-time phishing URL detection system, with a Decision Tree as the baseline model for comparison. The dataset used is PhreshPhish from Hugging Face, which contains URLs labeled as phishing or benign. The research stages include data preprocessing, feature extraction from URLs, splitting the data into training and test sets, and training both models. To address class imbalance, both models use class weighting. The Decision Tree was trained with a max_depth of 22 and a min_samples_leaf of 5, while the Random Forest was trained with 150 trees, unlimited depth, a min_samples_leaf of 3, and class_weight set to balanced_subsample. Model performance was evaluated using accuracy, precision, recall, and F1-score. The test results show that the Random Forest achieved an accuracy of 91.59% and an F1-score of 90.20%, higher than the Decision Tree, which achieved an accuracy of 91.26% and an F1-score of 89.88%. Based on these results, the Random Forest was selected as the model deployed in the system. The model is integrated into a browser extension that checks the URL being visited and warns the user before the page is fully loaded in the browser. Thus, the developed system has the potential to serve as an additional layer of protection for users against phishing attacks while browsing the internet.
Downloads
References
Ababil, F. N., & Sutopo, J. (2023). Implementasi Penentuan Sapi Kurban Terbaik Metode Simple Additive Weighting. 2(2), 121–127.
Arifin, I., & Chairani. (2025). Deteksi Web Phishing Menggunakan Pendekatan Klasifikasi Machine Learning. 10(3).
BSSN. (2024). Lanskap Keamanan Siber Indonesia 2024.
Dalton, T., Gowda, H., Rao, G., Pargi, S., Khodabakhshi, A. H., Rombs, J., Jou, S., & Marwah, M. (2026). PhreshPhish: A Real-World, High-Quality, Large-Scale Phishing Website Dataset and Benchmark. http://arxiv.org/abs/2507.10854
Fatiha, M. R., Setiawan, I., Ikhsan, A. N., & Yunita, I. R. (2024). Optimisasi Sistem Deteksi Phishing Berbasis Web Menggunakan Algoritma Decision Tree. Jurnal Ilmiah IT CIDA : Diseminasi Teknologi Informasi, 10(2). https://www.kaggle.com
Fikri Akbar, M., Lestari, N., Nurdiansyah, D., & Armanto. (2026). Penerapan Machine Learning Dalam Deteksi Serangan Malware Pada CIC IIOT Dataset 2025. In Jurnal Teknologi Informasi Mura (Vol. 18, Number 2).
Harahap, N., Dedi Irawan, M., & Hanifiah, Y. (2022). SIPENMA: Pemodelan UML dan Uji BlackBox pada Perancangan Sistem Pendaftaran Magang. In Jurnal Sistem Informasi.
Humaira, N., Aulia Cahyani Munthe, P., Ridho Baihaqi, A., Hendrik, & Bagus Prastiyo, E. (2026). Fenomena Penipuan Link Phishing Dalam Perspektif Sosiologi Kriminalitas. |, 28(1), 2808–7089. https://doi.org/10.21274
Mahmud, A. F., & Wirawan, S. (2024). Deteksi Phishing Website menggunakan Machine Learning Metode Klasifikasi (Vol. 13, Number 4). http://sistemasi.ftik.unisi.ac.id
Marsheila Islami, B., Sucipto, & Nugroho, A. (2025). Analisis Algoritma KNN dan Penerapan Smote Dalam Deteksi Dini Kanker Paru-Paru. In Blitar Bifadhlillah Marsheila Islami (Vol. 15, Number 2).
Putri, S. J., Galih, D., Putri, P., Hayuhardhika, W., & Putra, N. (2024). Analisis Komparasi pada Teknik Black Box Testing (Studi Kasus: Website Lars). Journal of Internet and Software Engineering, 5(1).
Salam Nagalay, F. S., Sriyanto, & Zarnelly. (2024). Analisis Penerapan Algoritma Decision Tree Dalam Keamanan Siber Untuk Kelasifikasi Situs Website Phishing. Jurnal Ilmiah Rekayasa Dan Manajemen Sistem Informasi, 10(1), 1–8.
Silcilia, Parsha Salsabila, N., & Apriani, T. (2026). Analisis Performa Random Forest, Decision Tree, dan Naive Bayes untuk Deteksi Link Phishing Berbasis Fitur URL. 4(1), 13–20. https://doi.org/10.25181/rt.v5i1.4330
Suwarno, D. B., & Hardjianto, M. (2024). Deteksi Website Phishing Dari Analisis Url Menggunakan Algoritma Random Forest (Vol. 21, Number 2).
Wayahdi, M. R., & Ruziq, F. (2023). Pemodelan Sistem Penerimaan Anggota Baru dengan Unified Modeling Language (UML) (Studi Kasus: Programmer Association of Battuta). Jurnal Minfo Polgan, 12(1), 1514–1521. https://doi.org/10.33395/jmp.v12i1.12870
Wijaya, A. S., & Testiana, G. (2026). Perancangan UI/UX Website Menggunakan Figma di Politeknik Pariwisata Palembang. RIGGS: Journal of Artificial Intelligence and Digital Business, 4(4), 9981–9992. https://doi.org/10.31004/riggs.v4i4.4737
Zahra, N. P., & Guntara, B. (2026). Cybercrime di Indonesia, Analisis Kriminologi terhadap Ancaman Kejahatan Digital. Social Science Academic, 4(1), 1177–1188. https://doi.org/10.37680/ssa.10323
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Alma Werdi Mora Hutasuhut, Khairuddin Nasution, Darjat Saripurna (Author)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.










