-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·374 lines (314 loc) · 12.4 KB
/
index.html
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AnonymZ.io</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #23272A; /* Discord dark theme background */
color: #FFFFFF;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
}
.container {
background-color: #2C2F33; /* Discord panel color */
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
max-width: 600px;
margin: auto;
}
.button {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: #7289DA; /* Discord primary color */
color: #FFFFFF;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
font-size: 16px;
}
.button:hover {
background-color: #677BC4; /* Slightly darker shade for hover effect */
}
.url-input, .url-output {
width: 80%;
padding: 10px;
margin: 10px 0;
border: 1px solid #7289DA;
border-radius: 4px;
color: #FFFFFF;
background-color: #2C2F33;
}
.url-output {
word-wrap: break-word;
}
.url-section {
margin-top: 20px;
text-align: center;
}
.url-section input, .url-section .button-group {
margin: 5px 0;
}
.button-group button, .button-group a {
margin-right: 5px;
}
/* Hamburger Menu styles */
.nav-icon {
cursor: pointer;
display: block;
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
user-select: none;
}
.nav-icon div {
width: 30px;
height: 3px;
background-color: #ffffff;
margin: 6px 0;
transition: 0.4s;
}
/* Rotate first bar */
.change .bar1 {
-webkit-transform: rotate(-45deg) translate(-5px, 6px);
transform: rotate(-45deg) translate(-5px, 6px);
}
/* Fade out the second bar */
.change .bar2 {
opacity: 0;
}
/* Rotate last bar */
.change .bar3 {
-webkit-transform: rotate(45deg) translate(-5px, -6px);
transform: rotate(45deg) translate(-5px, -6px);
}
.nav-content {
display: none;
position: absolute;
background-color: #2C2F33;
min-width: 160px;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
z-index: 999; /* Ensure it's below the nav-icon but above everything else */
right: 10px;
top: 45px; /* Adjusted to better align below the hamburger icon */
}
.nav-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.nav-content a:hover {
background-color: #677BC4; /* Slightly darker shade for hover effect */
}
.show {
display: block; /* Ensures the dropdown shows when the class is added */
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const sections = document.querySelectorAll('.hidden-section');
// Initially hide all sections
sections.forEach(section => section.style.display = 'none');
// Display only the home section
document.getElementById('defaultSection').style.display = 'block';
const navIcon = document.querySelector('.nav-icon');
const myDropdown = document.getElementById('myDropdown');
navIcon.addEventListener('click', function(event) {
navIcon.classList.toggle('change');
myDropdown.style.display = myDropdown.style.display === 'block' ? 'none' : 'block';
event.stopPropagation();
});
myDropdown.addEventListener('mouseover', function() {
myDropdown.style.display = 'block';
});
myDropdown.addEventListener('mouseout', function() {
if (!navIcon.classList.contains('change')) {
myDropdown.style.display = 'none';
}
});
document.addEventListener('click', function(event) {
if (!navIcon.contains(event.target) && !myDropdown.contains(event.target)) {
navIcon.classList.remove('change');
myDropdown.style.display = 'none';
}
});
// Function to switch visible sections
window.switchSection = function(sectionId) {
const sections = document.querySelectorAll('.hidden-section');
sections.forEach(section => {
section.style.display = 'none';
});
document.getElementById(sectionId).style.display = 'block';
navIcon.classList.remove('change');
myDropdown.style.display = 'none';
};
// Function to generate an anonymized URL
window.generateAnonymizedUrl = function() {
const urlInput = document.getElementById('urlInput').value;
const anonymizedUrl = 'https://anonymz.io/?' + urlInput;
document.getElementById('anonymizedUrl').value = anonymizedUrl;
document.getElementById('useLink').href = anonymizedUrl;
document.getElementById('anonymizedUrlSection').style.display = 'block';
};
// Function to handle "Enter" key press
window.handleKeyPress = function(event) {
if (event.key === 'Enter') {
generateAnonymizedUrl();
}
};
// Function to copy the URL to the clipboard
window.copyToClipboard = function() {
var copyText = document.getElementById('anonymizedUrl');
copyText.select();
document.execCommand('copy');
};
});
</script>
</head>
<body>
<div class="container">
<!-- Hamburger Menu Icon -->
<div class="nav-icon" onclick="toggleMenu()">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<!-- Dropdown Menu Content -->
<div class="nav-content" id="myDropdown">
<a href="#" onclick="switchSection('defaultSection'); hideMenu()">Home</a>
<a href="#" onclick="switchSection('aboutSection'); hideMenu()">About</a>
<a href="#" onclick="switchSection('usageSection'); hideMenu()">Usage</a>
</div>
<div id="defaultSection" class="hidden-section active">
<h1>Welcome to AnonymZ.io</h1>
<p>AnonymZ.io offers secure link anonymization to protect privacy and secure web traffic sources. It's the perfect tool for ensuring the confidentiality of your online activities.</p>
<p>For more information or to contribute, visit our GitHub page or join our Discord support server.</p>
<a href="https://www.paypal.com/donate?hosted_button_id=WHUGFBKXXCJ5G" class="button">Donate</a>
<a href="https://github.com/Finch-Studio/AnonymZ/" class="button">View on GitHub</a>
<a href="https://discord.gg/rvVuZswQ5p" class="button">Discord</a>
<div>
<h2>Generate Anonymized URL</h2>
<input type="text" id="urlInput" class="url-input" placeholder="Enter URL here" onkeypress="handleKeyPress(event)">
<button onclick="generateAnonymizedUrl()" class="button">Generate Link</button>
<div id="anonymizedUrlSection" class="url-section" style="display:none;">
<input type="text" id="anonymizedUrl" class="url-output" readonly>
<div class="button-group">
<button onclick="copyToClipboard()" class="button">Copy</button>
<a id="useLink" href="" target="_blank" class="button">Visit</a>
</div>
</div>
</div>
</div>
<div id="aboutSection" class="hidden-section">
<center>
<h1>About Us</h1>
<p>Welcome to <strong>AnonymZ.io</strong>, your trusted partner in enhancing online privacy and security. We are dedicated to anonymizing links for various online services, including Usenet and Torrent systems.</p>
<p>Our service provides a crucial layer of security, protecting the privacy of users by masking the sources of web traffic and preventing potential tracking. This is vital for services handling sensitive information.</p>
<h2>Our Commitment</h2>
<p><strong>No Logging:</strong> While AnonymZ.io does not keep any logs of user activity, it's important to note that Cloudflare, which we use to protect our server from attacks, may keep logs for its operational purposes.</p>
<p><strong>Open Source:</strong> AnonymZ.io offers an open-source solution hosted on <a href="https://github.com/Finch-Studio/AnonymZ" class="text-link">GitHub</a>. This platform allows anyone to use, adapt, and contribute to meeting their needs and enhancing the service.</p>
<p>Whether you are a casual internet user or a service provider, <strong>AnonymZ.io</strong> is committed to ensuring your activities remain private and secure.</p>
<div class="button-group">
<a href="#" onclick="switchSection('defaultSection'); hideMenu()" class="button">Return Home</a>
<a href="https://www.paypal.com/donate?hosted_button_id=WHUGFBKXXCJ5G" class="button">Donate via PayPal</a>
</div>
<p>All donations help cover the costs of domain and server maintenance, operational costs, and ensure our service remains free and accessible. Any remaining funds are allocated to future expenses on servers and domains.</p>
<a href="#" onclick="switchSection('usageSection'); hideMenu()" class="button">Learn How to Use Our Service</a>
</div>
<style>
#aboutSection {
color: #FFFFFF;
text-align: left;
margin-bottom: 20px;
}
.text-link {
color: #7289DA; /* Example: primary color for links */
text-decoration: underline; /* Underlines to signify it's clickable */
}
#aboutSection h1, #aboutSection h2 {
color: #7289DA;
}
#aboutSection p {
margin-bottom: 20px;
}
#aboutSection ul {
list-style: none;
padding: 0;
margin-bottom: 20px;
}
#aboutSection li {
padding-left: 20px;
margin-bottom: 10px;
position: relative;
}
#aboutSection li::before {
content: "";
width: 8px;
height: 8px;
background-color: #7289DA;
border-radius: 50%;
position: absolute;
left: 0;
top: 12px;
}
.button-group {
margin-top: 20px;
}
</style>
<div id="usageSection" class="hidden-section">
<h2>How to Use</h2>
<p>To effectively utilize AnonymZ.io for anonymizing links or using it as a referrer, follow these instructions:</p>
<h3>Link Anonymization</h3>
<p>To anonymize a link, simply enter the URL you wish to anonymize into the service's input field. AnonymZ.io will then generate a new, obscured link that you can use, which hides the original source from trackers.</p>
<h3>Using as a Referrer</h3>
<p>To use AnonymZ.io as a referrer, append your original URL to our service URL. For example:</p>
<code>https://anonymz.io/?https://google.ca</code>
<p>This method anonymizes the traffic source and uses AnonymZ.io as the referrer, which can help mask the original traffic source in analytics and server logs.</p>
<h3>Integrating as a Referrer in .htaccess</h3>
<p>If you want to use AnonymZ.io as the default referrer for your website, you can add the following lines to your .htaccess file:</p>
<pre>RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://anonymz.io/ [NC]
RewriteRule .* https://anonymz.io/?%{HTTP_REFERER} [R=302,L]</pre>
<p>This configuration will redirect all inbound links that do not already use AnonymZ.io as the referrer, effectively anonymizing the source before visitors reach your site.</p>
<h3>Using in Other Programs</h3>
<p>For integrating AnonymZ.io as a referrer in other programs or applications, simply prepend our service URL to any outbound links similar to the example provided. This will ensure that all outbound traffic is routed through AnonymZ.io, maintaining anonymity.</p>
<a href="#" onclick="switchSection('defaultSection'); hideMenu()" class="button">Return Home</a>
</div>
<style>
#usageSection {
background-color: #2C2F33; /* Discord panel color */
color: #FFFFFF;
padding: 20px;
border-radius: 10px;
margin-top: 20px;
}
#usageSection h2, #usageSection h3 {
color: #7289DA; /* Discord primary color */
}
#usageSection pre, #usageSection code {
background-color: #23272A; /* Discord dark theme background */
color: #FFFFFF;
padding: 10px;
border-radius: 5px;
display: block;
word-wrap: break-word;
}
</style>
</div>
</body>
</html>
</html>