How saigayathrigudla-1184/phishhh works
This Flask application offers two user-facing checks: URL phishing detection and email spam classification. URL submissions are expanded, analyzed into features, classified, and shown as safe or phishing; email text is vectorized, classified, and shown with the result. The central implementation is app.py plus custom/feature.py; model and vectorizer artifacts are runtime inputs. The excerpts support the main calls and several URL-analysis lookups, but do not show every feature implementation or template interaction.
Main entry points: app.py Flask routes · feature.py URL feature extraction · templates Page templates · finalmodel.joblib URL classifier
Components 11
Web application
- Flask routes
app.py - Page templates
templates
URL analysis
- URL feature extraction
custom/feature.py - URL classifier
finalmodel.joblib
Email classification
- Email classifier
logistic_regression_model.joblib
Prediction assets
- TF-IDF vectorizer
tfidf_vectorizer.joblib
Other components
- Visitor
- Target websites
- WHOIS service
- PageRank service
- Web search
Connections 11
- Visitor → Flask routes: submits checks
app.py - Flask routes → Page templates: renders pages
app.py - Flask routes → Target websites: expands URL
app.py - Flask routes → URL feature extraction: extracts features
app.py - URL feature extraction → URL classifier: predicts URL
- Flask routes → TF-IDF vectorizer: transforms email
app.py - Flask routes → Email classifier: predicts email
app.py - URL feature extraction → Target websites: fetches page
custom/feature.py - URL feature extraction → WHOIS service: looks up domain
custom/feature.py - URL feature extraction → PageRank service: checks rank
custom/feature.py - URL feature extraction → Web search: searches URL
custom/feature.py