From 4a06938f4c748cc9224755f110dad073d1b8c1cd Mon Sep 17 00:00:00 2001 From: pickwickvest Date: Sat, 25 Apr 2026 13:04:14 +0330 Subject: [PATCH] Remove the X-Forwarded-For header to hide the real IP address This is done to bypass sanctions on Iran --- apps_script/Code.gs | 5 +++++ 1 file changed, 5 insertions(+) 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]; } }