-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathindex.html
More file actions
174 lines (159 loc) · 7.11 KB
/
Copy pathindex.html
File metadata and controls
174 lines (159 loc) · 7.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CyberShield — URL Security Scanner</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="favicon.png" />
</head>
<body>
<!-- ── Loading Screen ── -->
<div id="loader">
<div class="loader-inner">
<div class="loader-sonar">
<div class="loader-core">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" style="color:#00f5ff">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
</div>
</div>
<div class="loader-brand">CyberShield</div>
<div class="loader-tagline">Your Security, In Your Hands</div>
<div class="loader-bar-wrap"><div class="loader-bar"></div></div>
</div>
</div>
<!-- ── Theme Toggle (fixed) ── -->
<button id="themeToggle" class="theme-toggle-btn" aria-label="Toggle theme">
<div class="toggle-icon-wrap">
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="4"/>
<path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41m12.72-12.72l-1.41 1.41"/>
</svg>
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>
</svg>
</div>
</button>
<!-- ── Main Page ── -->
<div id="mainPage" class="hidden">
<div class="wrapper">
<!-- Header -->
<header class="header">
<div class="logo-badge">
<div class="dot"></div>
CyberShield
</div>
<h1>CyberSheild URL Scanner</h1>
<p>Check any link instantly to see if it is safe to visit </p>
<p class="subtitle">Real-time threat detection powered by Google Safe Browsing API. Scans for phishing, malware & social engineering.</p>
</header>
<!-- Scanner Card -->
<div class="scanner-card">
<div class="input-row">
<div class="input-wrap">
<svg class="input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/>
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>
</svg>
<input type="text" id="urlInput" placeholder="Paste your link hereto scan..." autocomplete="off" spellcheck="false">
</div>
<button class="scan-btn" id="scanBtn" onclick="checkSecurity()">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/>
</svg>
Scan URL
</button>
</div>
<div class="examples">
<span class="examples-label">Try:</span>
<span class="example-chip" onclick="fillExample('https://google.com')">google.com</span>
<span class="example-chip" onclick="fillExample('https://github.com')">github.com</span>
<span class="example-chip" onclick="fillExample('http://testsafebrowsing.appspot.com/s/phishing.html')">phishing test</span>
<span class="example-chip" onclick="fillExample('http://testsafebrowsing.appspot.com/s/malware.html')">malware test</span>
</div>
<div id="result"></div>
</div>
<!-- Stats -->
<div class="stats-row">
<div class="stat-card">
<div class="stat-num" id="totalScans">0</div>
<div class="stat-label">URLs Scanned</div>
</div>
<div class="stat-card">
<div class="stat-num" id="safeCount">0</div>
<div class="stat-label">Safe</div>
</div>
<div class="stat-card">
<div class="stat-num" id="dangerCount">0</div>
<div class="stat-label">Threats Blocked</div>
</div>
</div>
<!-- Nav Links -->
<div class="dashboard-cta" style="margin-top:20px">
<a class="scan-btn" href="chat.html">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
</svg>
Scam Text Detector
</a>
<a class="scan-btn" href="dashboard.html" style="background:var(--card-bg); color:var(--accent-cyan); border:1px solid var(--card-border);">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/>
<rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/>
</svg>
Threat Dashboard
</a>
</div>
<!-- Features -->
<div class="features">
<div class="feature-item">
<div class="feature-icon">🛡️</div>
<div class="feature-title">Malware Detection</div>
<div class="feature-desc">Identifies URLs hosting malicious software targeting your device</div>
</div>
<div class="feature-item">
<div class="feature-icon">🎣</div>
<div class="feature-title">Phishing Shield</div>
<div class="feature-desc">Catches social engineering & credential theft attempts</div>
</div>
<div class="feature-item">
<div class="feature-icon">⚡</div>
<div class="feature-title">Real-time API</div>
<div class="feature-desc">Live data from Google Safe Browsing threat database</div>
</div>
</div>
<!-- Team Section -->
<div class="footer">Built for Security — Powered by Google Safe Browsing API</div>
</div>
<!-- Footer -->
<footer class="main-footer">
<div class="footer-content">
<div class="footer-brand">
<div class="logo-badge"><div class="dot"></div>CyberShield</div>
<p>Real-time URL security analysis to protect your digital footprint from evolving threats.</p>
</div>
<div class="footer-links">
<div class="footer-col">
<h4>Tools</h4>
<a href="chat.html">Scam Detector Chat</a>
<a href="dashboard.html">Threat Dashboard</a>
</div>
<div class="footer-col">
<h4>Legal</h4>
<a href="privacy.html">Privacy Policy</a>
<a href="terms.html">Terms of Service</a>
</div>
<div class="footer-col">
<h4>Resources</h4>
<a href="docs.html">Documentation</a>
<a href="https://github.com/Mrinalray/Cybershield_URL" target="_blank" rel="noopener noreferrer">GitHub Repo</a>
</div>
</div>
</div>
<div class="footer-bottom">© 2026 CyberShield URL Scanner. Built for Security — Powered by Google Safe Browsing API.</div>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>