-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleantalk-anticrawler.html
More file actions
119 lines (102 loc) · 3.27 KB
/
cleantalk-anticrawler.html
File metadata and controls
119 lines (102 loc) · 3.27 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Anti-Crawler Protection</title>
<style>
:root {
--primary-color: #026e88;
--bg-light: #f5f9fb;
--text-color: #222;
--border-radius: 8px;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
margin: 0;
padding: 0;
background: var(--bg-light);
font-family: var(--font-family);
color: var(--text-color);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.wrapper {
background: #fff;
padding: 30px 40px;
border-radius: var(--border-radius);
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
max-width: 900px;
text-align: center;
}
h1 {
margin-top: 0;
font-size: 26px;
font-weight: 700;
}
p {
font-size: 16px;
line-height: 1.5;
margin: 16px 0 26px;
}
.btn {
display: inline-block;
background: var(--primary-color);
color: #fff;
padding: 12px 26px;
margin-bottom: 26px;
border-radius: var(--border-radius);
text-decoration: none;
border: none;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: opacity .2s;
}
.btn:hover {
opacity: 0.85;
}
.link {
color: var(--primary-color);
font-size: 14px;
font-weight: 500;
}
</style>
</head>
<body>
<div class="wrapper">
<h1>Anti-Crawler is checking your browser and IP address :IP: for bot behavior</h1>
<p>This page is a quick test to block bots, crawlers, and content scrapers. If you’re a real person, wait 3 seconds or reload the page. If the test fails, make sure JavaScript is enabled in your browser.<br>
The page was generated at <span id="date">Browser time</span>.</p>
<button class="btn" onclick="location.reload(); return false;">Reload the page</button>
<div>
<a class="link" href="https://github.com/CleanTalk">Anti-Crawler & SpamFireWall by CleanTalk</a>
</div>
</div>
<script>
/* Second chance logic */
try {
document.cookie = "js_anticrawler_passed=1; max-age=31536000; path=/; samesite=Lax";
} catch (e) {}
var tried = document.cookie.match(/(?:^|;\s*)js_anticrawler_retry=1(?:;|$)/);
if (!tried) {
document.cookie = "js_anticrawler_retry=1; max-age=300; path=/; samesite=Lax";
location.reload();
}
/* Display current date and time */
const date = new Date();
const dateStr = date.toLocaleString('en-US', {
year: 'numeric',
month: 'short',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
}).replace(/,(?=[^,]*$)/, '');
document.getElementById('date').textContent = dateStr;
</script>
</body>
</html>