How th-shivam/phishguard works
PHISHGUARD is a browser extension whose main workflow monitors page navigations, submits URLs to VirusTotal, and redirects flagged pages to a warning screen after adding a blocking rule. The popup separately reads and changes the protection setting. The README also describes community reporting and color-coded warnings; the sampled warning-page code implements a local report alert rather than showing a network submission. Connections are limited to the README and sampled source; other files in the tree were not inspected.
Main entry points: background.js Navigation Monitor · blocked.html Warning Page · popup.html Protection Popup · popup.js Popup Controls
Components 11
Threat Protection
- Navigation Monitor
background.js - URL Scanner
background.js - Dynamic Rule Blocking
background.js
User Interfaces
- Warning Page
blocked.html - Warning Interactions
static/js/blocked.js - Protection Popup
popup/popup.html - Popup Controls
popup/popup.js
Browser Services
- VirusTotal
- Browser Rule Engine
- Protection Setting
Other components
- Browser User
Connections 12
- Browser User → Navigation Monitor: navigates
README.md - Navigation Monitor → Protection Setting: reads setting
background.js - Navigation Monitor → URL Scanner: submits URL
background.js - URL Scanner → VirusTotal: scans URL
background.js - Navigation Monitor → Dynamic Rule Blocking: blocks flagged URL
background.js - Dynamic Rule Blocking → Browser Rule Engine: adds rule
background.js - Navigation Monitor → Warning Page: redirects flagged tab
background.js - Warning Page → Warning Interactions: loads behavior
- Browser User → Protection Popup: opens
README.md - Protection Popup → Popup Controls: loads controls
- Popup Controls → Protection Setting: reads and writes
popup/popup.js - Browser User → Warning Interactions: chooses warning action
static/js/blocked.js