diff --git a/apps_script/Code.gs b/apps_script/Code.gs index 8c2acec..8ab8aea 100644 --- a/apps_script/Code.gs +++ b/apps_script/Code.gs @@ -104,6 +104,11 @@ function _buildOpts(req) { var headers = {}; for (var k in req.h) { if (req.h.hasOwnProperty(k) && !SKIP_HEADERS[k.toLowerCase()]) { + + // Remove the user's real IP address to bypass sanctions + var lower = k.toLowerCase(); + if (lower === "x-forwarded-for") continue; + headers[k] = req.h[k]; } }