Skip to content

Google script 403 #325

Closed
Closed

Description

@Yasin1ar

وقتی با حالت google only
میری سایت گوگل اسکریپت برای اولین بار، ارور 403 میگیری.

من به وی پی ان دیگه ای دسترسی ندارم تا برای اولین بار برم سایت گوگل اسکریپت و تنظیمات مربوطه رو انجام بدم.
آیا راهکاری هست؟

Activity

  1. therealaleph commented on Apr 27, 2026

    @therealaleph
    Owner

    @Yasin1ar — مشکل classic chicken-and-egg هست: برای استفاده از mhrv-rs نیاز به deployment Apps Script داری، ولی برای ساختن deployment باید script.google.com رو اول باز کنی، که ۴۰۳ می‌گیره.

    علت ۴۰۳ چندتا possible هست:

    ۱. Iran-side filtering (احتمال بالا)

    از حدود ۱۲ ظهر روز ۲۶ آوریل، چندین کاربر گزارش دادن که دسترسی به Apps Script از داخل ایران بسته شده (#313). google_only mode SNI rewrite انجام می‌ده، که برای بسیاری از Google services کار می‌کنه — ولی Google ممکنه specifically برای script.google.com چک کنه که SNI و Host match نکنن (دامن fronting fingerprint) و ۴۰۳ برگردونه.

    ۲. Geo-fence Apps Script برای IP‌های ایران

    Google ممکنه script.google.com رو از IP‌های ایران مستقیم block کنه. SNI rewrite در این حالت کمک نمی‌کنه چون درخواست به edge IP می‌رسه + Google در سطح HTTP geo-detect می‌کنه.

    سه راه‌حل ممکن:

    راه ۱: استفاده از deployment ID و auth_key کسی دیگر (سریع‌ترین)

    برخی کاربران mhrv-rs deployment ID + auth_key خودشون رو در کانال‌های public Telegram share می‌کنن. خود من این کار رو نمی‌کنم (خطر سوءاستفاده + share کردن quota با بقیه)، ولی اگر در کانال‌های mhrv-rs ایرانی نگاه کنید، چندتا public deployment پیدا می‌کنید. این برای bootstrap اولیه کار می‌کنه — بعد می‌تونید deployment خودتون بسازید از طریق mhrv-rs که فعال شده.

    راه ۲: کسی خارج از ایران deploy کنه + share کنه

    دوست/فامیل خارج از ایران (هر کسی با Google account):

    1. به https://script.google.com بره
    2. New project → Code.gs paste از https://raw.githubusercontent.com/therealaleph/MasterHttpRelayVPN-RUST/main/assets/apps_script/Code.gs
    3. AUTH_KEY ست کنه (یه string رندوم) + Save
    4. Deploy → New deployment → Web app → "Anyone" access → Deploy
    5. URL deployment رو + AUTH_KEY رو به شما بفرسته

    شما deployment ID + AUTH_KEY رو در mhrv-rs ست کنید. این کاملاً secure هست — اون شخص فقط quota Apps Script اشتراکی داره با شما، نه دسترسی به ترافیک شما (TLS بین client و origin هست).

    راه ۳: VPN موقت (Outline / WireGuard public servers)

    اگه به یه VPN موقت دسترسی داری (حتی WireGuard rotating public peers، یا Outline که برخی NGOها server free می‌دن، یا Tor)، یک‌بار با اون به https://script.google.com برو + setup کن. بعد deployment ID رو در mhrv-rs ست کن + از mhrv-rs استفاده کن.

    این یه بار است؛ بعد از setup، mhrv-rs خودش کار می‌کنه + نیازی به اون VPN موقت نیست.

    برای Issue اصلی:

    اگه google_only mode هم نمی‌تونه script.google.com رو باز کنه، این یعنی Google specifically این endpoint رو برای Iran-origin filter می‌کنه (نه صرفاً Apps Script outbound، بلکه access به خود editor هم). این فعلاً tracked در #313 هست — حال‌حاضر بدون mitigation از سمت mhrv-rs، چون مشکل قبل از Apps Script (در سطح Google's own access policy) اتفاق می‌افته.

    در حال حاضر استفاده از deployment که قبلاً توسط شخص دیگه deploy شده، عملی‌ترین راه برای کاربر در ایران بدون VPN ثانوی است.

    این issue رو باز نگه می‌دارم — اگه workaround موفق پیدا کردید (مثلاً google_only به یه edge IP خاص که filter نشده)، گزارش بدید + می‌تونیم در docs اضافه کنیم.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  2. therealaleph commented on May 15, 2026

    @therealaleph
    Owner

    Closing this for now because there has not been a follow-up from the original reporter for more than 7 days.

    If this is still happening on the latest release, please comment here or reopen with the current version, mode, relevant config shape, and fresh logs.


    Answered via LLM, Supervised @therealaleph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions