export const BLOCKED_CODE = 200; export const BLOCKED_BODY = Buffer.from(`
This navigation was prevented by 22120 as a Chrome bug fix for some requests causing issues.
`).toString("base64"); export const BLOCKED_HEADERS = [ {name: "X-Powered-By", value: "Dosyago-Corporation"}, {name: "X-Blocked-Internally", value: "Custom 22120 Chrome bug fix"}, {name: "Accept-Ranges", value: "bytes"}, {name: "Cache-Control", value: "public, max-age=0"}, {name: "Content-Type", value: "text/html; charset=UTF-8"}, {name: "Content-Length", value: `${BLOCKED_BODY.length}`} ]; const BLOCKED_RESPONSE = ` HTTP/1.1 ${BLOCKED_CODE} OK X-Powered-By: Zanj-Dosyago-Corporation X-Blocked-Internally: Custom ad blocking Accept-Ranges: bytes Cache-Control: public, max-age=0 Content-Type: text/html; charset=UTF-8 Content-Length: ${BLOCKED_BODY.length} ${BLOCKED_BODY} `; export default BLOCKED_RESPONSE;