Commit Graph

179 Commits

Author SHA1 Message Date
Emran Hejazi b3c17ef677 Add quota/rate-limit detection 2026-04-22 11:44:55 +03:30
Emran Hejazi 8487940ac6 Implement google candidate ips with a script that finds the fastest ip 2026-04-22 11:20:01 +03:30
Abolfazl Ghaemi 829de0bb2e Merge pull request #7 from Kianmhz/python_testing
docs: add troubleshooting entry for script.google.com connection failure
2026-04-22 07:12:23 +03:30
Kian Haddad bfc0729fad docs: add troubleshooting entry for script.google.com connection failure 2026-04-21 23:36:04 -04:00
Abolfazl acf75dcfd7 feat: implement local HTTP proxy server with MITM capabilities
- Added a new proxy server that intercepts browser traffic and forwards requests through an Apps Script relay.
- Implemented response caching to optimize repeated requests.
- Included support for SOCKS5 proxy connections.
- Added handling for CORS preflight requests and response injection.
- Integrated domain-based policies for blocking and bypassing specific hosts.
- Enhanced error handling and logging for better debugging.
2026-04-22 05:19:59 +03:30
Abolfazl c20a9f6fcd nothing really important, mb 2026-04-22 04:01:37 +03:30
Abolfazl 792719df71 Refactor documentation and code for Apps Script relay mode; remove WebSocket support. 2026-04-22 03:56:17 +03:30
Amin Mahmoudi 42b34afc16 Update README_FA.md 2026-04-21 23:38:24 +03:30
Amin Mahmoudi 57e0af5d85 Update README.md 2026-04-21 23:37:31 +03:30
Amin Mahmoudi fceba891f4 Update README.md 2026-04-21 23:37:16 +03:30
Amin Mahmoudi 070f121717 Update README.md 2026-04-21 23:37:04 +03:30
Amin Mahmoudi 6211e29bcf Create LICENSE 2026-04-21 23:27:51 +03:30
Abolfazl 607e226fff Enhance error handling and add size limits for request and response bodies 2026-04-21 21:31:21 +03:30
Abolfazl Ghaemi d563c1516e Merge pull request #3 from PK3NZO/codex/apps-script-compat-socks5
Improve apps_script stability, add SOCKS5, and fix over-broad Google direct routing
2026-04-21 21:20:58 +03:30
PK3NZO c86eb9b25b Update docs and add contribution hygiene notes 2026-04-21 16:41:48 +03:30
PK3NZO 04f8d44435 Fix Linux CA trust detection 2026-04-21 16:41:48 +03:30
PK3NZO 9f587da40f Preserve browser capability headers in Apps Script relay 2026-04-21 16:41:48 +03:30
PK3NZO 961e1c9e54 Improve apps_script relay stability and add SOCKS5 support 2026-04-21 16:41:48 +03:30
Abolfazl e54994a679 Youtube & x.com fixed 2026-04-21 10:14:24 +03:30
Abolfazl f7fe687b6c Fix CORS errors for cross-origin requests through MITM proxy
- Add _cors_preflight_response(): generates a 204 No Content response
  with permissive CORS headers (Allow-Origin, Allow-Methods,
  Allow-Headers, Allow-Credentials, Max-Age).
- Add _inject_cors_headers(): strips any existing Access-Control-*
  headers from a relayed response and replaces them with permissive
  ones, so the browser accepts the response regardless of the origin.
- In _do_mitm_connect (HTTPS MITM): intercept OPTIONS preflight
  requests and respond locally — UrlFetchApp does not support OPTIONS
  so forwarding preflights always failed. Inject CORS headers into all
  other relayed responses when an Origin header is present.
- In _do_http (plain HTTP): same preflight interception and CORS
  header injection for apps_script mode.
2026-04-21 05:03:42 +03:30
Abolfazl fd22de27ca Add cross-platform CA auto-installer and production hardening
- Add cert_installer.py: cross-platform trusted CA installer
  (Windows certutil/PowerShell, macOS security, Linux update-ca-certificates,
  Firefox NSS via certutil/certutil)
- main.py: add --install-cert and --no-cert-check CLI flags; auto-detect and
  auto-install MITM CA on startup when not yet trusted
- mitm.py: rename CA CN/O from 'DomainFront Tunnel' to 'MasterHttpRelayVPN'
- proxy_server.py: downgrade TLS handshake errors to DEBUG to reduce log noise
  for non-HTTPS traffic (MTProto, plain HTTP on non-443 ports)
- README.md / README_FA.md: document new CLI flags, auto-install behaviour,
  and cert_installer.py in project files table
2026-04-21 04:56:49 +03:30
Abolfazl b1b625045a Add PyPI mirror installation instructions and enhance troubleshooting section in README and README_FA 2026-04-20 23:18:12 +03:30
Amin Mahmoudi 73c26cf759 Update README_FA.md 2026-04-20 21:56:12 +03:30
Amin Mahmoudi 1588b10417 Update README.md 2026-04-20 21:55:32 +03:30
Amin Mahmoudi 4a476b228e Update README.md 2026-04-20 21:55:12 +03:30
Abolfazl 545b43b907 Add README disclaimers in English and Persian 2026-04-20 19:29:59 +03:30
Abolfazl 9cc3f5eba9 Simplify README and add Persian guide 2026-04-20 19:24:00 +03:30
Abolfazl 5dbee179e1 Add Code.gs relay script and update README with full documentation 2026-04-20 19:05:46 +03:30
Amin.MasterkinG df3c2c5c16 First commit! (TESTING) 2026-04-20 18:44:53 +03:30