Weighs the soul of incoming HTTP requests to stop AI crawlers

feat(js): stop execution if the client disabled cookies (#438)

Signed-off-by: Xe Iaso <me@xeiaso.net>

authored by

Xe Iaso and committed by
GitHub
e953b514 52a6a65c

+7
+1
docs/docs/CHANGELOG.md
··· 16 16 - Change import syntax to allow multi-level imports 17 17 - Changed the startup logging to use JSON formatting as all the other logs do. 18 18 - Added the ability to do [expression matching with CEL](./admin/configuration/expressions.mdx) 19 + - Add a warning for clients that don't store cookies 19 20 - Disable Open Graph passthrough by default ([#435](https://github.com/TecharoHQ/anubis/issues/435)) 20 21 21 22 ## v1.17.1: Asahi sas Brutus: Echo 1
+6
web/js/main.mjs
··· 28 28 msg: "Your browser doesn't support web workers (Anubis uses this to avoid freezing your browser). Do you have a plugin like JShelter installed?", 29 29 value: window.Worker, 30 30 }, 31 + { 32 + name: "Cookies", 33 + msg: "Your browser doesn't store cookies. Anubis uses cookies to determine which clients have passed challenges by storing a signed token in a cookie. Please enable storing cookies for this domain. The names of the cookies Anubis stores may vary without notice. Cookie names and values are not part of the public API.", 34 + value: navigator.cookieEnabled, 35 + }, 31 36 ]; 32 37 33 38 function showContinueBar(hash, nonce, t0, t1) { ··· 131 136 statusMsg: msg, 132 137 imageSrc: imageURL("reject", anubisVersion, basePrefix), 133 138 }); 139 + return; 134 140 } 135 141 } 136 142