How mahendra-35/scam_schield works
ScamShield is a Django scam-awareness and risk-checking platform. A user submits suspicious text or a URL to the checker; the analysis endpoint validates and sanitizes input, evaluates text rules and URL structure, then combines indicators into a scored assessment. Signed-in users can review scan history, while visitors can browse educational guides and submit incident reports; administrators get platform and incident oversight. The graph preserves the documented dashboard-chart capability, although templates are not in the supplied tree. Evidence is limited to the README and sampled files/SOURCE INDEX references; unshown wiring is omitted.
Main entry points: accounts/views.py Accounts and dashboards · engine.py Analysis orchestrator · analyzer/views.py Scam checker API · awareness/views.py Learning center
Components 19
Risk analysis
- Scam checker API
analyzer/views.py - Analysis orchestrator
analyzer/engine.py - Input validation
analyzer/validators.py - Text rule matching
analyzer/rules.py - URL inspection
analyzer/url_analysis.py - Risk scoring
analyzer/scoring.py - Scan history
analyzer/models.py - Checker interface
static/js/analyzer.js
Accounts and dashboards
- User profile
accounts/models.py - Accounts and dashboards
accounts/views.py - Dashboard charts
static/js/charts.js
Awareness hub
- Learning center
awareness/views.py - Guides and categories
awareness/models.py - Educational data seeder
awareness/management/commands/seed_scam_data.py
Incident reporting
- Incident submission
reports/views.py - Community reports
reports/models.py
Other components
- Visitor
- Signed-in user
- Administrator
Connections 19
- Visitor → Scam checker API: submits for analysis
- Scam checker API → Analysis orchestrator: invokes analysis
analyzer/views.py - Analysis orchestrator → Input validation: validates input
analyzer/engine.py - Analysis orchestrator → Text rule matching: evaluates text
analyzer/engine.py - Analysis orchestrator → URL inspection: inspects URL
analyzer/engine.py - Analysis orchestrator → Risk scoring: calculates score
analyzer/engine.py - Scam checker API → Scan history: stores scan
analyzer/views.py - Scam checker API → Checker interface: serves checker
- Signed-in user → Accounts and dashboards: opens dashboard
accounts/views.py - Administrator → Accounts and dashboards: opens admin dashboard
accounts/views.py - Accounts and dashboards → User profile: creates profile
accounts/views.py - Accounts and dashboards → Scan history: reads scan history
accounts/views.py - Accounts and dashboards → Community reports: reads incident reports
accounts/views.py - Accounts and dashboards → Dashboard charts: provides chart data
- Visitor → Learning center: browses guides
- Learning center → Guides and categories: queries articles
awareness/views.py - Educational data seeder → Guides and categories: seeds guides
awareness/management/commands/seed_scam_data.py - Visitor → Incident submission: submits incident
- Incident submission → Community reports: creates report
reports/views.py