Anti-scraping: 3x3 grids, decoy pools, robot check
Every pyramid level is cut into at least min_grid x min_grid tiles. Each photo's tile pool mixes real tiles with hard-linked decoys from other photos; the grid-to-pool map, byte sizes, seed and scramble seed are sealed per build and unlocked by a press-and-hold check backed by a static proof of work. Cell scrambling is on by default, and robots.txt disallows tiles and pool files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
aaf7cafdf9
commit
f5152fb709
30 files changed
+2136
-203
No files matched your search
@@ -5,6 +5,6 @@ Run the site behind a Cloudflare Tunnel (`cloudflared.yml` in this folder). In s
|
||||
Cache rules (Caching → Cache Rules), in this order:
|
||||
|
||||
1. Tiles, OG images and assets: when the URI path starts with `/t/`, `/og/` or `/assets/`, set *Eligible for cache*, Edge TTL 1 month (or "use cache-control header"), Browser TTL "respect origin". Their names are content-hashed, so they never change.
|
||||
2. Everything else (HTML, `/a/*`, `index.<build>.json`): Edge TTL 1 minute or "respect origin" (`max-age=60`). Manifests are named after the build, so a new build needs no purge.
|
||||
2. Everything else (HTML, `/a/*` including the per-photo pool files under `/a/<slug>/p/`, `index.<build>.json`, `robots.txt`): Edge TTL 1 minute or "respect origin" (`max-age=60`). Manifests and pool files are named after the build, so a new build needs no purge. Decoy tiles under `/t/` never change their bytes either, so rule 1 holds for them.
|
||||
|
||||
Keep "Cache by device type" and query-string variations off. Hotlink protection is done by LuPhoto, Caddy or nginx on `/t/*`; Cloudflare's own Hotlink Protection can stay off, or be enabled for the same hostname.
|
||||
@@ -16,7 +16,8 @@ quality = { top = 90, mid = 88, low = 88 }
|
||||
min_levels = 6
|
||||
seed_px = 48
|
||||
tile_names = "hashed"
|
||||
scramble_cells = false
|
||||
scramble_cells = true
|
||||
min_grid = 3
|
||||
|
||||
[loading]
|
||||
budget_ms = 3000
|
||||
@@ -32,3 +33,6 @@ keep_builds = 3
|
||||
[protection]
|
||||
block_context_menu = true
|
||||
hotlink_allow = ["photos.luciochen.com"]
|
||||
decoys = 4
|
||||
gate = true
|
||||
pow_bits = 20
|
||||
Reference in new issue
Block a user