Authors: Thejiya V.
Abstract: Machine learning classifiers can screen Uniform Resource Locators (URLs) for phishing using features extracted from the URL string. This study compares logistic regression, a decision tree, and a random forest on 235,370 unique URLs from the PhiUSIIL dataset using ten lexical features. Each model was evaluated over three stratified random splits and three splits with disjoint registrable domains. About 18.5% of random-split test records shared a domain with training records, compared with zero in the grouped tests. Mean phishing F1 scores under domain grouping were 99.04% for logistic regression and 99.56% for both tree models after rounding. The forest averaged 99.56% F1 under both protocols. All legitimate records in the benchmark used HTTPS and had empty path and query components. A fixed rule based on these fields achieved 98.89% mean F1 on grouped tests. The forest averaged 95.98% F1 after the direct scheme, path and query features were removed, and 72.21% with hostname features alone. The model scores therefore describe within-benchmark discrimination under domain separation. Evaluation on independently collected URLs is needed to assess performance when legitimate URLs have more varied structures.