A Flask web application to check if a URL is suspicious by querying PhishTank and VirusTotal, plus a quick local blacklist check.
- Instantly flags URLs found in a local blacklist
- Can query PhishTank and VirusTotal for phishing reports
- Lets you add URLs to your own blacklist
- Falls back if APIs are down or rate-limited
git clone https://github.com/Adarsh-S-R/Phishing_URL_Detector.git
cd phishing_detectorpip install -r requirements.txt- VirusTotal: Obtain a free API key from virustotal.com.
- Set the API key as an environment variable:
- Windows (PowerShell):
$env:VIRUSTOTAL_API_KEY="your_virustotal_api_key_here"
- Linux/macOS:
export VIRUSTOTAL_API_KEY=your_virustotal_api_key_here
- Windows (PowerShell):
- Alternatively, you can edit
virustotal_api.pyand replaceYOUR_VIRUSTOTAL_API_KEYwith your key (not recommended for public repos).
python app.pyVisit http://127.0.0.1:5000 in your browser.
This repository contains no real API keys.
virustotal_api.py includes only a placeholder key (YOUR_VIRUSTOTAL_API_KEY).
Keep your actual keys private and out of version control.
The local URL blacklist is saved in blacklist.json.
- Free VirusTotal API keys are limited to 4 requests/minute.
- PhishTank API may have daily limits and reliability issues; the app handles these gracefully.
