Spaces:
Sleeping
Sleeping
Phishing Detector Browser Extension
ML-powered phishing detection extension for Chrome/Edge browsers.
Features
- π Real-time Detection: Check websites as you browse
- π‘οΈ Manual URL Check: Test any URL before visiting
- π Statistics: Track sites checked and threats blocked
- β οΈ Visual Warnings: Clear alerts for dangerous sites
- π― ML-Powered: Uses trained model from API
Installation
Chrome/Edge:
- Open browser and go to
chrome://extensions/(oredge://extensions/) - Enable Developer mode (toggle in top-right)
- Click Load unpacked
- Select the
browser-extensionfolder - Extension will appear in your toolbar!
Usage
Automatic Check:
- Click the extension icon on any website
- See instant safety status of current site
Manual Check:
- Click extension icon
- Enter any URL in "Check Any URL" field
- Click "Check URL" button
- Get instant results
Context Menu:
- Right-click any link
- Select "Check this link for phishing"
API Configuration
The extension connects to: https://kshitijk20-nss.hf.space
To change API URL:
- Edit
popup.js - Update
API_URLconstant - Reload extension
Features Extracted
The extension automatically extracts 30 URL features:
- IP address detection
- URL length analysis
- SSL/HTTPS verification
- Subdomain analysis
- Suspicious patterns (@ symbol, redirects)
- Domain characteristics
- And 20+ more security indicators
Statistics
The extension tracks:
- Sites Checked: Total websites analyzed
- Threats Blocked: Phishing sites detected
Development
File Structure:
browser-extension/
βββ manifest.json # Extension configuration
βββ popup.html # Extension popup UI
βββ popup.js # Popup logic
βββ popup.css # Popup styling
βββ content.js # Page content script
βββ background.js # Background service worker
βββ icons/ # Extension icons
To Test Changes:
- Make your changes
- Go to
chrome://extensions/ - Click reload button on the extension
- Test the extension
Privacy
- No data collection
- No tracking
- All checks go through your API
- Local statistics only
Troubleshooting
Extension not working:
- Check if API is running: https://kshitijk20-nss.hf.space
- Check browser console for errors
- Reload extension
False positives:
- Model is trained on specific dataset
- Can be improved with more training data
API errors:
- Ensure HF Space is awake (not sleeping)
- Check network connection
- Verify API URL is correct
Future Improvements
- Add settings page
- Enable/disable auto-check
- Whitelist trusted sites
- Export statistics
- Multi-language support
- Firefox version
Support
For issues or questions:
- GitHub: Your repository
- API: https://kshitijk20-nss.hf.space/docs
License
MIT License - Feel free to modify and distribute!