babuakash/malicious-url-detector-api
0
๐ Malicious URL Detector API
A FastAPI-based REST API that classifies URLs as benign, phishing, malware, or defacement using a deep learning model.
API Endpoints
GET /
Health check โ returns a welcome message.
POST /predict
Analyze a URL for threats.
Request body:
{ "url": "https://example.com" }Response:
{
"url": "https://example.com",
"prediction": "benign",
"confidence": 98.7,
"class_probabilities": {
"benign": 0.987,
"phishing": 0.008,
"malware": 0.003,
"defacement": 0.002
},
"ssl_info": { "valid": true, "cn": "example.com", ... },
"whois_info": { "registrar": "...", "created": "...", ... }
}GET /health
Returns { "status": "ok" }.
