Detection of Phishing Websites Using Artificial Intelligence: A Url-Text Machine Learning Approach with A Flask-Based Prototype

Phishing websites impersonate trusted services to steal credentials, and list-based defences can miss newly created URLs. This paper presents a lightweight prototype that classifies website URLs as phishing or legitimate using supervised machine learning on URL text. A labelled dataset of 549,346 URLs (392,924 legitimate and 156,422 phishing) is tokenized with an alphabetic regular-expression tokenizer, stemmed with the English Snowball stemmer and converted to token-count vectors using CountVectorizer. Logistic Regression and Multinomial Naive Bayes are trained on an 80:20 train–test split. Logistic Regression reaches approximately 96.54% test accuracy (97.98% training score), with phishing-class precision, recall and F1-score of 0.91, 0.97 and 0.94 on 109,870 test samples, against approximately 95.80% for Naive Bayes. The fitted vectorizer and classifier are persisted and served through a Flask web application that returns a phishing or legitimate message without visiting the submitted address. The system analyses URL text only and performs no live SSL, domain-age or page-content analysis, so its outputs are model predictions on a single random split and not guarantees of safety. Directions for stronger evaluation and for adding host and content signals are outlined.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24672046
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Detection of Phishing Websites Using Artificial Intelligence: A Url-Text Machine Learning Approach with A Flask-Based Prototype

Bhavya Kathuria, Sanjeev, Paras Sharma, Assistant professor Ms.Jessica Gaur4
Zenodo (CERN European Organization for Nuclear Research)
Spam and Phishing Detection
article

Detection of Phishing Websites Using Artificial Intelligence: A Url-Text Machine Learning Approach with A Flask-Based Prototype

Bhavya Kathuria, Sanjeev, Paras Sharma, Assistant professor Ms.Jessica Gaur4
article en

Abstract

Phishing websites impersonate trusted services to steal credentials, and list-based defences can miss newly created URLs. This paper presents a lightweight prototype that classifies website URLs as phishing or legitimate using supervised machine learning on URL text. A labelled dataset of 549,346 URLs (392,924 legitimate and 156,422 phishing) is tokenized with an alphabetic regular-expression tokenizer, stemmed with the English Snowball stemmer and converted to token-count vectors using CountVectorizer. Logistic Regression and Multinomial Naive Bayes are trained on an 80:20 train–test split. Logistic Regression reaches approximately 96.54% test accuracy (97.98% training score), with phishing-class precision, recall and F1-score of 0.91, 0.97 and 0.94 on 109,870 test samples, against approximately 95.80% for Naive Bayes. The fitted vectorizer and classifier are persisted and served through a Flask web application that returns a phishing or legitimate message without visiting the submitted address. The system analyses URL text only and performs no live SSL, domain-age or page-content analysis, so its outputs are model predictions on a single random split and not guarantees of safety. Directions for stronger evaluation and for adding host and content signals are outlined.

Zenodo (CERN European Organization for Nuclear Research)
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon