diff --git a/lib.js b/lib.js index 4a9cc2c..9f1cfad 100644 --- a/lib.js +++ b/lib.js @@ -24,6 +24,10 @@ async function get(hostname, path) { hostname, path, method: "GET", + // Add a referrer header to avoid 403 errors + headers: { + Referer: `https://${hostname}/`, + }, }, (res) => { const body = [];