Length & shape
How long the URL, hostname, and path are — and how much of it is digits.
Phishing Website Detection reads 20 signals straight from a URL and runs a trained Random Forest model — no request to the site itself — turning a complex classification workflow into a clear, practical scan.
Trust can be engineered into a page. URL evidence gives users and systems another signal before sensitive information is shared.
Phishing websites imitate trusted organizations to persuade people to reveal passwords, account details, or other private information.
Financial services and online platforms process a large volume of real-time transactions, making them attractive targets for fraud and social engineering. Attackers continuously change their techniques, create convincing replicas, and distribute them through emails, messages, and misleading links.
This project explores how measurable URL characteristics can help distinguish legitimate websites from potentially phishing websites. It is designed for learning, experimentation, and responsible security research.
Twenty lexical features — computed purely from the URL text, so every scan is fast, private, and reproducible.
How long the URL, hostname, and path are — and how much of it is digits.
Counts of telltale characters: dots, hyphens, @, and query symbols.
Raw-IP hosts, extra subdomains, embedded redirects, and repeated protocol tokens.
HTTPS usage, brand-lookalike hyphens, URL shorteners, and phishing keywords.
Trained offline on 2,553 URLs and measured on a held-out 25% test set.
Correct classifications on unseen URLs.
Strong separation between legitimate and phishing.
5-fold cross-validated accuracy (±1.4%).
The same documented workflow powers the Streamlit interface and the training notebooks.
Provide a complete website URL in the Streamlit scanner.
Convert the URL text into 20 numeric lexical features.
Pass the feature vector to the saved Random Forest classifier.
Review the Legitimate or Phishing classification and extracted values.
The repository keeps the application, training material, and source datasets easy to inspect.