From 48a8175f0453f2d43274f9911663106fd456df76 Mon Sep 17 00:00:00 2001 From: sky Date: Mon, 5 Jan 2026 19:54:20 -0500 Subject: [PATCH] add always allow list --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.js b/index.js index 26589d6..c664e7c 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,12 @@ import { Database } from "bun:sqlite"; import express from "express"; const port = process.env.PORT || 3000; +const alwaysAllow = [ + "selenite.cc", + "selenite.skys.day", + "selenite.skysthelimit.dev" +] + const db = new Database("links.sqlite"); db.exec("PRAGMA journal_mode = WAL;"); @@ -64,6 +70,9 @@ app.get("/check", async (req, res) => { } catch (error) { return res.status(400).end(); } + if(alwaysAllow.includes(domain.host)) { + return res.status(200).end(); + } const hostname = domain.hostname.toLowerCase(); if (hostname.split(".").length > 5) {