commit: 871a6782a04107fb4062678a1d5872309e002319
parent c8e8a0ddf005e0ce836fb33f35d5b8b7b9af5e4c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 16 Jan 2025 14:26:07 +0100
drink-me: anti-scrapper directory
Diffstat:
28 files changed, 227 insertions(+), 0 deletions(-)
diff --git a/drink-me/drink-me-1.html b/drink-me/drink-me-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 1</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-0.html">prev</a> - <a href="./drink-me-2.html">next</a></p>
+ <q>I've simply been pretending to be an adult until I can make it as an ideal grown-up.
+— Himmel, Sousou no Frieren (2024)</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-1.html.br b/drink-me/drink-me-1.html.br
Binary files differ.
diff --git a/drink-me/drink-me-10.html b/drink-me/drink-me-10.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 10</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-9.html">prev</a> - <a href="./drink-me-11.html">next</a></p>
+ <q>Oh dear, I'm feeling political today. It's just that it's dawned on me that 'zero tolerance' only seems to mean putting extra police in poor, run-down areas, and not in the Stock Exchange.
+— Terry Pratchett; alt.fan.pratchett</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-10.html.br b/drink-me/drink-me-10.html.br
Binary files differ.
diff --git a/drink-me/drink-me-11.html b/drink-me/drink-me-11.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 11</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-10.html">prev</a> - <a href="./drink-me-12.html">next</a></p>
+ <q>When men refer to themselves as "alpha males", I hear that in the context of software, where alpha veresions are unstable, missing important features, filled with flaws and nor fit for the public.
+— Glenn F. Henriksen</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-11.html.br b/drink-me/drink-me-11.html.br
Binary files differ.
diff --git a/drink-me/drink-me-12.html b/drink-me/drink-me-12.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 12</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-11.html">prev</a> - <a href="./drink-me-13.html">next</a></p>
+ <q>The following two statements are usually both true:
+There's not enough documentation.
+There's too much documentation.
+— Larry Wall <199709020026.RAA08431@wall.org> (1997)</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-12.html.br b/drink-me/drink-me-12.html.br
Binary files differ.
diff --git a/drink-me/drink-me-13.html b/drink-me/drink-me-13.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 13</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-12.html">prev</a> - <a href="./drink-me-14.html">next</a></p>
+ <q>The student approached the Master and said "He wants to put a million people on Mars by 2040! That's so amazing!"
+
+The Master replied. "I have a better plan. I will put a million people on Antarctica by 2040."
+
+"But that sounds fucking insane. Why would you want to do something that stupid? It's a barren wasteland that's difficult to populate and would provide us with absolutely nothing!"
+
+At that moment, the student was enlightened.
+— Chris Armstrong, 2024 <https://mastodon.social/@Rhodium103/113118466140842493></q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-13.html.br b/drink-me/drink-me-13.html.br
Binary files differ.
diff --git a/drink-me/drink-me-2.html b/drink-me/drink-me-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 2</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-1.html">prev</a> - <a href="./drink-me-3.html">next</a></p>
+ <q>Don't tell me that catgirl and the IBN 5100 are connected somehow.
+— Okarin, Steins; Gate (2009)</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-2.html.br b/drink-me/drink-me-2.html.br
Binary files differ.
diff --git a/drink-me/drink-me-3.html b/drink-me/drink-me-3.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 3</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-2.html">prev</a> - <a href="./drink-me-4.html">next</a></p>
+ <q>Half of the world is women!
+— 紅の豚 (Porco Rosso, 1992)</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-3.html.br b/drink-me/drink-me-3.html.br
Binary files differ.
diff --git a/drink-me/drink-me-4.html b/drink-me/drink-me-4.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 4</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-3.html">prev</a> - <a href="./drink-me-5.html">next</a></p>
+ <q>Oh dear, I'm feeling political today. It's just that it's dawned on me that 'zero tolerance' only seems to mean putting extra police in poor, run-down areas, and not in the Stock Exchange.
+— Terry Pratchett; alt.fan.pratchett</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-4.html.br b/drink-me/drink-me-4.html.br
Binary files differ.
diff --git a/drink-me/drink-me-5.html b/drink-me/drink-me-5.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 5</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-4.html">prev</a> - <a href="./drink-me-6.html">next</a></p>
+ <q>A distributed system is one in which the failure of a computer you didn’t even know existed can render your own computer unusable.
+— Leslie Lamport</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-5.html.br b/drink-me/drink-me-5.html.br
Binary files differ.
diff --git a/drink-me/drink-me-6.html b/drink-me/drink-me-6.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 6</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-5.html">prev</a> - <a href="./drink-me-7.html">next</a></p>
+ <q>Q: Why doesn't Linode offer Windows VPS by default?
+A: It's called Linode, and that means "Linux node", it's not called "Winode".
+Q: If I install FreeBSD, does it mean that the host is going to open chatrooms for everyone?</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-6.html.br b/drink-me/drink-me-6.html.br
Binary files differ.
diff --git a/drink-me/drink-me-7.html b/drink-me/drink-me-7.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 7</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-6.html">prev</a> - <a href="./drink-me-8.html">next</a></p>
+ <q>Somehow I've lucked out and have an 8yo who thinks secretly reading under the covers past her bedtime is an act of rebellion, and it hasn't yet occurred to her that her flashlights never seem to run out of batteries.
+— Robert McNees 2020-08-13 - https://mastodon.social/@mcnees/110334058263166569</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-7.html.br b/drink-me/drink-me-7.html.br
Binary files differ.
diff --git a/drink-me/drink-me-8.html b/drink-me/drink-me-8.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 8</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-7.html">prev</a> - <a href="./drink-me-9.html">next</a></p>
+ <q>Software gets slower faster than hardware gets faster.
+— Wirth’s law</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-8.html.br b/drink-me/drink-me-8.html.br
Binary files differ.
diff --git a/drink-me/drink-me-9.html b/drink-me/drink-me-9.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me 9</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-8.html">prev</a> - <a href="./drink-me-10.html">next</a></p>
+ <q>I need privacy. Not because my actions are questionable, but because your judgement and intentions are.</q>
+ </main>
+ </body>
+</html>
diff --git a/drink-me/drink-me-9.html.br b/drink-me/drink-me-9.html.br
Binary files differ.
diff --git a/drink-me/gen-drink-me.sh b/drink-me/gen-drink-me.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+# 512MiB
+node_str_limit=536870888
+
+for i in $(seq 13 1)
+do
+ echo "generating drink-me-$i.html"
+
+ # Generate non-evil version so nginx will use brotli_static
+ # and a simple curl at it will not show the evil
+ printf \
+'<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me %d</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-%d.html">prev</a> - <a href="./drink-me-%d.html">next</a></p>
+ <q>%s</q>
+ </main>
+ </body>
+</html>
+' \
+ "$i" \
+ $((i - 1)) \
+ $((i + 1)) \
+ "$(fortune)" \
+ > "drink-me-$i.html"
+
+ chmod +r "drink-me-$i.html"
+
+ echo "generating drink-me-$i.html.br"
+
+ # Generate evil-brotli version
+ {
+ printf \
+'<!DOCTYPE html>
+<html>
+ <head><meta charset="utf-8"><title>drink me %d</title></head>
+ <body>
+ <main>
+ <p><a href="./drink-me-%d.html">prev</a> - <a href="./drink-me-%d.html">next</a></p>
+' \
+ "$i" \
+ $((i - 1)) \
+ $((i + 1))
+
+ yes '
+ <p><a href="#">'
+ } \
+ | head -c "$node_str_limit" \
+ | brotli -f -Z -o "drink-me-$i.html.br"
+
+ chmod +r "drink-me-$i.html.br"
+done
diff --git a/drink-me/index.html b/drink-me/index.html
@@ -0,0 +1,21 @@
+<html>
+<head><title>Index of /drink-me/</title>
+<style>td{font-family:monospace;}td:nth-child(3){text-align:right;}</style>
+</head><body>
+<h1>Index of /drink-me/</h1><hr><table><tr><th>Name</th><th>Date</th><th>Size</th></tr>
+<tr><td><a href="../">../</a></td></tr>
+<tr><td><a href="drink-me-1.html">drink-me-1.html</a></td><td>2025-01-16 13:18</td><td>347</td></tr>
+<tr><td><a href="drink-me-10.html">drink-me-10.html</a></td><td>2025-01-16 13:18</td><td>455</td></tr>
+<tr><td><a href="drink-me-11.html">drink-me-11.html</a></td><td>2025-01-16 13:18</td><td>448</td></tr>
+<tr><td><a href="drink-me-12.html">drink-me-12.html</a></td><td>2025-01-16 13:18</td><td>401</td></tr>
+<tr><td><a href="drink-me-13.html">drink-me-13.html</a></td><td>2025-01-16 13:18</td><td>749</td></tr>
+<tr><td><a href="drink-me-2.html">drink-me-2.html</a></td><td>2025-01-16 13:18</td><td>324</td></tr>
+<tr><td><a href="drink-me-3.html">drink-me-3.html</a></td><td>2025-01-16 13:18</td><td>287</td></tr>
+<tr><td><a href="drink-me-4.html">drink-me-4.html</a></td><td>2025-01-16 13:18</td><td>453</td></tr>
+<tr><td><a href="drink-me-5.html">drink-me-5.html</a></td><td>2025-01-16 13:18</td><td>377</td></tr>
+<tr><td><a href="drink-me-6.html">drink-me-6.html</a></td><td>2025-01-16 13:18</td><td>448</td></tr>
+<tr><td><a href="drink-me-7.html">drink-me-7.html</a></td><td>2025-01-16 13:18</td><td>524</td></tr>
+<tr><td><a href="drink-me-8.html">drink-me-8.html</a></td><td>2025-01-16 13:18</td><td>298</td></tr>
+<tr><td><a href="drink-me-9.html">drink-me-9.html</a></td><td>2025-01-16 13:18</td><td>330</td></tr>
+</table></body>
+</html>