How aleem-ghafoor/phishguard works
PhishGuard is a Django URL-risk detection app. A browser submits a URL; scanner views validate it, call the prediction service, and return a prediction with phishing probability. Authenticated scans are saved and can be retrieved as history. Separate capabilities cover account management, the dashboard, and offline dataset preparation and model training. The graph follows the supplied README and excerpts; unshown dashboard internals and some offline data-stage connections are represented only where their paths are supported.
Main entry points: views.py Scan endpoints · raw Prepared datasets · urls.py Django application · predictor.py URL predictor
Components 20
Web application
- Django application
PhishGuard/urls.py - Dashboard
PhishGuard/views.py
Accounts
- Account handlers
accounts/views.py - Account forms
accounts/form.py - User model
accounts/models.py
URL scanning
- Scan endpoints
scanner/views.py - URL validation
scanner/validation.py - Scan service
scanner/services.py - Scan history
scanner/models.py
Machine learning
- URL predictor
ml_engine/predictor.py - URL features
ml_engine/feature_extractor.py - Random Forest artifact
ml_engine/model - Model training
ml_engine/train.py - Model evaluation
ml_engine/evaluation.py
Dataset preparation
- Dataset cleaning
datasets/raw/scripts/data_cleaning.py - Dataset inspection
datasets/raw/scripts/data_inspection.py - Dataset features
datasets/raw/scripts/feature_extraction.py - Dataset preprocessing
datasets/raw/scripts/preprocessing.py - Prepared datasets
datasets/raw
Other components
- User / browser
Connections 20
- User / browser → Django application: uses
README.md - Django application → Dashboard: routes to
PhishGuard/urls.py - Django application → Account handlers: routes to
PhishGuard/urls.py - Django application → Scan endpoints: routes to
PhishGuard/urls.py - User / browser → Scan endpoints: submits URL
README.md - Scan endpoints → URL validation: validates
scanner/views.py - Scan endpoints → Scan service: calls
scanner/views.py - Scan service → URL predictor: calls
scanner/services.py - URL predictor → URL features: extracts features
ml_engine/predictor.py - URL predictor → Random Forest artifact: loads model
- Scan endpoints → Scan history: writes scans
scanner/views.py - Scan endpoints → Scan history: reads history
scanner/views.py - Account handlers → Account forms: uses forms
accounts/views.py - Account forms → User model: creates users
accounts/form.py - Model training → Model evaluation: evaluates
ml_engine/train.py - Model training → Prepared datasets: reads prepared data
ml_engine/train.py - Dataset cleaning → Prepared datasets: prepares data
- Dataset inspection → Prepared datasets: inspects data
- Dataset features → Prepared datasets: extracts features
- Dataset preprocessing → Prepared datasets: preprocesses