-
+
-
Threat Risk Analysis
+
+
-
-
- Risk Score: 0%
-
-
-
-
+
+
+
Threat Risk Analysis
+
+
+
+ Risk Score: 0%
+
+
+
+
+
+
+
+ Confidence Level: 0%
+
+
+
+
+
+
+
+ SAFE
+
-
-
- Confidence Level: 0%
-
+
-
-
-
-
- SAFE
-
+
+
@@ -172,6 +189,7 @@
Threat Risk Analysis
+
0
URLs Scanned
diff --git a/script.js b/script.js
index 3bc40e2..fc4212e 100644
--- a/script.js
+++ b/script.js
@@ -1,4 +1,4 @@
-// ─────────────────────────────
+ // ─────────────────────────────
// LOADER
// ─────────────────────────────
@@ -557,6 +557,31 @@ async function checkSecurity() {
${hasHarmful ? '🔴' : '✅'}
Harmful App: ${hasHarmful ? 'Detected!' : 'None detected'}
`, url, threats);
+
+ addToHistory(url, 'DANGER', {
+ title: 'Threat Detected!',
+ desc: `This URL is flagged as dangerous. Do not visit it.
+
+
+ ${isHttps ? '✅' : '⚠️'} HTTPS: ${isHttps ? 'Secure connection' : 'Not secure'}
+
+
+ ${hasMalware ? '🔴' : '✅'} Malware: ${hasMalware ? 'Detected!' : 'No malware detected'}
+
+
+ ${hasPhishing ? '🔴' : '✅'} Phishing: ${hasPhishing ? 'Phishing detected!' : 'No phishing detected'}
+
+
+ ${hasUnwanted ? '🔴' : '✅'} Unwanted Software: ${hasUnwanted ? 'Detected!' : 'None detected'}
+
+
+ ${hasHarmful ? '🔴' : '✅'} Harmful App: ${hasHarmful ? 'Detected!' : 'None detected'}
+
+
`,
+ threats: threats,
+ resultType: 'danger'
+ });
+
} else {
updateStats('safe');
const urlObj = new URL(url);
@@ -586,14 +611,49 @@ async function checkSecurity() {
${hasHarmful ? '🔴' : '✅'}
Harmful App: ${hasHarmful ? 'Detected!' : 'None detected'}
`, url, []);
+
+ addToHistory(url, 'SAFE', {
+ title: 'URL is Safe',
+ desc: `No threats detected. Google Safe Browsing found no issues.
+
+ ${isHttps ? '✅' : '⚠️'} HTTPS: ${isHttps ? 'Secure connection' : 'Not secure — use with caution'}
+
+
+ ${hasMalware ? '🔴' : '✅'} Malware: ${hasMalware ? 'Detected!' : 'No malware detected'}
+
+
+ ${hasPhishing ? '🔴' : '✅'} Phishing: ${hasPhishing ? 'Phishing detected!' : 'No phishing detected'}
+
+
+ ${hasUnwanted ? '🔴' : '✅'} Unwanted Software: ${hasUnwanted ? 'Detected!' : 'None detected'}
+
+
+ ${hasHarmful ? '🔴' : '✅'} Harmful App: ${hasHarmful ? 'Detected!' : 'None detected'}
+
+
`,
+ threats: [],
+ resultType: 'safe'
+ });
+
}
+
} catch (err) {
showResult('error', 'Scan Error',
`An unexpected error occurred.