Vol. 7 No. 2 (2026) • Articles
Open Access

Deteksi Phishing Website Menggunakan Algoritma Random Forest dengan Hyperparameter Tuning GridSearchCV

Gabriel Mika Angelo
Universitas Kristen Satya Wacana
Evangs Mailoa
Universitas Kristen Satya Wacana
Published: May 30, 2026 Pages: 322-331
Original Full-Text Article
Download published version for reading and archiving
Abstract

Phishing websites are one of the cybersecurity threats that deceive users into disclosing sensitive information such as usernames, passwords, and financial data. These attacks are commonly carried out by creating fake web pages that resemble legitimate websites, making them difficult for ordinary users to identify. Therefore, URL-based phishing detection is important in improving user security when accessing websites. This study aims to improve the accuracy of phishing URL classification by applying hyperparameter tuning to the Random Forest algorithm as a popular machine learning method. The dataset used consists of 10,000 URLs, comprising 5,000 phishing URLs and 5,000 legitimate URLs, which were then extracted into 16 relevant numerical technical features. Four model configurations were evaluated, consisting of one default model and three tuned models using GridSearchCV. The experimental results show that the Grid 2 configuration achieved the best performance with an accuracy of 82.65%, precision of 82.70%, recall of 82.65%, F1-score of 82.62%, ROC-AUC of 0.9068, and PR-AUC of 0.8976. In comparison, the default model only achieved an accuracy of 82.40% and an F1-score of 82.38%, while Grid 1 and Grid 3 produced slightly lower performance. These findings indicate that hyperparameter tuning can provide a slight performance improvement compared to the default configuration in detecting phishing websites, although the difference is not statistically significant.

Article Metrics & Downloads Graph
Monthly Download Trends:
Author Biographies
Gabriel Mika Angelo Universitas Kristen Satya Wacana

Program Studi Teknik Informatika, Fakultas Teknologi Informasi, Universitas Kristen Satya Wacana, Kota Salatiga, Provinsi Jawa Tengah, Indonesia

Evangs Mailoa Universitas Kristen Satya Wacana

Program Studi Teknik Informatika, Fakultas Teknologi Informasi, Universitas Kristen Satya Wacana, Kota Salatiga, Provinsi Jawa Tengah, Indonesia

How to Cite
Angelo, G. M., & Mailoa, E. (2026). Deteksi Phishing Website Menggunakan Algoritma Random Forest dengan Hyperparameter Tuning GridSearchCV. Jurnal Indonesia : Manajemen Informatika Dan Komunikasi, 7(2), 322-331. https://doi.org/10.63447/jimik.v7i2.1865
License

Creative Commons Attribution 4.0 International License (CC BY 4.0)

This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License .

  • Share: You are free to copy, distribute, and transmit the work in any medium or format.
  • Adapt: You are free to remix, transform, and build upon the work for any purpose, even commercially.
  • Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Copyright & Retention: Authors retain copyright without restrictions and grant this journal the right of first publication under an open-access model. The journal retains non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.

References
Total: 15 References
  1. Attanasi, E. D., & Coburn, T. C. (2023). Random forest. Dalam Encyclopedia of mathematical geosciences (hlm. 1182–1185). Springer. https://doi.org/10.1007/978-3-030-85040-1_265
  2. Berrar, D. (2021). Cross-validation. Dalam Encyclopedia of bioinformatics and computational biology (Vol. 1, hlm. 542–545). Elsevier.
  3. El-Hassani, F. Z., Amri, M., Joudar, N. E., & Haddouch, K. (2024). A new optimization model for MLP hyperparameter tuning: Modeling and resolution by real-coded genetic algorithm. Neural Processing Letters, 56(2), 1–31. https://doi.org/10.1007/s11063-024-11578-0
  4. Hapsari, R. D., & Pambayun, K. G. (2023). Ancaman cybercrime di Indonesia: Sebuah tinjauan pustaka sistematis. Jurnal Konstituen, 5(1), 1–17. https://doi.org/10.33701/jk.v5i1.3208
  5. Huizen, L. M., Ardima, M. B., & Idris, M. (2025). Meningkatkan kinerja SVM: Dampak berbagai teknik seleksi fitur pada akurasi prediksi. Aiti, 22(1), 1–14. https://doi.org/10.24246/aiti.v22i1.1-14
  6. Mahmud, A. F., & Wirawan, S. (2024). Deteksi phishing website menggunakan machine learning metode klasifikasi. Sistemasi: Jurnal Sistem Informasi, 13(4). http://sistemasi.ftik.unisi.ac.id
  7. Nugraha, A. F., Aziza, R. F. A., & Pristyanto, Y. (2022). Penerapan metode stacking dan random forest untuk meningkatkan kinerja klasifikasi pada proses deteksi web phishing. Jurnal Infomedia, 7(1), 39. https://doi.org/10.30811/jim.v7i1.2959
  8. Nugroho, M. W. (2025). Analisis performa algoritma random forest dalam mengatasi overfitting pada model prediksi. Jurnal Teknologi Informasi dan Komputer, 9(4). https://doi.org/10.35870/jtik.v9i4.4236
  9. Pensa, R. G., Crombach, A., Peignier, S., & Rigotti, C. (2025). Explaining random forest and XGBoost with shallow decision trees by co-clustering feature importance. Machine Learning, 114(12). https://doi.org/10.1007/s10994-025-06932-9
  10. Prayetno, F. M., Riski, F., & Safitri, D. L. A. (2026). Analisis Keamanan Siber Pada Sistem Elektronik Berbasis Perspektif Jaringan Komputer Dan Ketentuan Bssn: Studi Pada Imbauan Phishing dan Pencurian Kredensial: Studi pada Imbauan Phishing dan Pencurian Kredensial. Jurnal Teknologi Informasi: Jurnal Keilmuan dan Aplikasi Bidang Teknik Informatika, 20(1), 95-100 https://doi.org/10.47111/jti.v20i1.23404
  11. Subaşı, N. (2024). Comprehensive analysis of grid and randomized search on dataset performance. European Journal of Engineering and Applied Sciences, 7(2), 77–83. https://doi.org/10.55581/ejeas.1581494
  12. Suwarno, D. B., & Hardjianto, M. (2024). Deteksi website phishing dari analisis URL menggunakan algoritma random forest. Jurnal Teknik Informatika, 21(2), 145–152. https://doi.org/10.36080/bit.v21i2.3603
  13. Wahyudi, D., Niswar, M., & Alimuddin, A. A. P. (2022). Website phishing detection application using support vector machine (SVM). Journal of Information Technology and Its Utilization, 5(1), 18–24. https://doi.org/10.56873/jitu.5.1.4836
  14. Yang, Z., Liu, X., Li, T., Wu, D., Wang, J., Zhao, Y., & Han, H. (2022). A systematic literature review of methods and datasets for anomaly-based network intrusion detection. Computers & Security, 116, Article 102675. https://doi.org/10.1016/j.cose.2022.102675
  15. Yates, L. A., Aandahl, Z., Richards, S. A., & Brook, B. W. (2023). Cross validation for model selection: A review with examples from ecology. Ecological Monographs, 93(1). https://doi.org/10.1002/ecm.1557.
Similar Articles

Articles sharing related keywords and machine learning classifications:

Perbandingan Algoritma Klasifikasi Decision Tree, Random Forest, dan Naive Bayes dalam Prediksi Kelulusan Mahasiswa
ANALISIS SENTIMEN ARTIKEL BERITA PEMILU BERBASIS METODE KLASIFIKASI
Analisis Emosi dalam Lirik Lagu menggunakan Natural Language Processing
CLASSIFYING VILLAGE FUND IN WEST JAVA, INDONESIA USING CATBOOST ALGORITHM
Perbandingan Algoritma Decision Tree, ID3, dan Random Forest dalam Klasifikasi Faktor-Faktor yang Mempengaruhi Karier Mahasiswa Ilmu Komputer
Most read articles by the same author(s)

Other papers published by author(s) in this journal:

Analisis Sentimen terhadap RSUD Salatiga Menggunakan SVM dan TF-IDF
Analisa Tweet Mahasiswa untuk Deteksi Gejala Depresi dengan Penerapan Natural Language Processing
PERBANDINGAN IMPLEMENTASI METODE SMOTE PADA ALGORITMA SUPPORT VECTOR MACHINE (SVM) DALAM ANALISIS SENTIMEN OPINI MASYARAKAT TENTANG MIXUE
Pembuatan REST API Manajemen Data Karyawan Berbasis Website Menggunakan Spring Boot
Pembuatan Website REST API Ensiklopedia Tumbuhan dengan Kombinasi Framework Spring Boot dan MyBatis Generator