Link domains are never curtained: spin links redirect and the mini-sites answer while linkspin.app stays covered (Marty wants to test traffic before launch)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -856,6 +856,7 @@ const CURTAIN_PAGE = `<!doctype html><html lang="en"><head><meta charset="utf-8"
|
|||||||
|
|
||||||
function curtained(req, res, u) {
|
function curtained(req, res, u) {
|
||||||
if (!CURTAIN) return false;
|
if (!CURTAIN) return false;
|
||||||
|
if (isLinkHost(req)) return false; // the short link domains stay public: spin links must redirect and the mini-site must answer while the main site is covered (Marty 2026-10-07: test traffic before launch)
|
||||||
if (u.searchParams.get('k') === CURTAIN) {
|
if (u.searchParams.get('k') === CURTAIN) {
|
||||||
u.searchParams.delete('k');
|
u.searchParams.delete('k');
|
||||||
res.writeHead(302, {
|
res.writeHead(302, {
|
||||||
|
|||||||
Reference in New Issue
Block a user