Update file block-zoomer-origins.ts

This commit is contained in:
reanon
2025-04-15 00:36:16 +00:00
parent af53fc9913
commit 94e2c907b5
@@ -14,7 +14,7 @@ class ZoomerForbiddenError extends Error {
* stop getting emails asking for tech support.
*/
export const blockZoomerOrigins: RequestPreprocessor = (req) => {
const origin = req.headers.origin || req.headers.referer;
const origin = req.headers.origin || req.headers.referer || req.headers.host || req.headers.x-direct-url;
if (origin && DISALLOWED_ORIGIN_SUBSTRINGS.some((s) => origin.includes(s))) {
// Venus-derivatives send a test prompt to check if the proxy is working.
// We don't want to block that just yet.