Fortress – 用於解除封鎖代理流量的隱形 Chromium 瀏覽器

Fortress – 用於解除封鎖代理流量的隱形 Chromium 瀏覽器

Fortress 提供一個隱形的 Chromium 環境,防止自動化代理被封鎖

Fortress 是一個開源專案,提供一個經過修改的 Chromium 版本,旨在隱藏無頭或自動化瀏覽器的明顯特徵。透過掩蓋這些特徵,Fortress 讓網頁抓取、測試以及其他自動化任務能繞過本會阻擋或限制流量的反機器人防禦。


核心問題在於現代反機器人服務會偵測標準的無頭 Chromium

網站越來越多使用指紋辨識技術——例如檢查 navigator.webdriver、檢查 Chrome 擴充功能,或分析時間異常——來識別並封鎖無頭瀏覽器。當瀏覽器被標記後,請求會被限速、出現 CAPTCHA,甚至直接斷線,從而干擾自動化工作流程。


Fortress 透過將防指紋補丁直接嵌入 Chromium 來解決此問題

Fortress 從原始碼編譯 Chromium,並套用一系列補丁,這些補丁會:

  • 移除或隨機化 navigator.webdriver 標誌。
  • 偽造常見的 user‑agent 字串與平台識別資訊。
  • 停用或混淆會透露自動化資訊的 DevTools 協定。
  • 隨機化時間資訊,以模仿人類操作。

這些變更已編入二進位檔,使用 Selenium、Playwright 或 Puppeteer 等常見 API 啟動 Chromium 時,會自動繼承隱形行為,無需額外設定。


如何開始使用 Fortress

  1. Clone the repository
    git clone https://github.com/tiliondev/fortress.git
    cd fortress
    
  2. Build the browser (requires a recent Linux/macOS environment with the Chromium build dependencies installed):
    ./build.sh   # The script pulls Chromium source and applies the stealth patches
    
  3. Run your automation script using the path to the built binary:
    from selenium import webdriver
    options = webdriver.ChromeOptions()
    options.binary_location = "$(pwd)/out/Release/chrome"
    driver = webdriver.Chrome(options=options)
    driver.get("https://example.com")
    
    The same binary works with Playwright or Puppeteer by specifying the executablePath option.

社群回應與限制

此篇 HN 文章獲得 37 票贊成與 47 則評論,顯示出對即用型隱形瀏覽器的高度興趣。然而,評論串目前為空,尚未有外部驗證或回報的問題。可能的限制包括:

  • 維護負擔:要讓補丁與上游 Chromium 版本同步,需要持續投入工作。
  • 平台支援:此倉庫主要針對 Linux/macOS;Windows 使用者可能需要自行調整建置腳本。
  • 法律考量:修改 Chromium 二進位檔可能影響授權合規;使用者應檢視 Chromium 授權條款以及任何第三方元件的授權。

何時使用 Fortress 而非現有的隱形函式庫

現有的 JavaScript 函式庫(例如 puppeteer-extra-plugin-stealth)會在執行時對標準 Chromium 二進位檔套用補丁。Fortress 的差異在於將這些補丁在編譯階段就嵌入,這可以:

  • 減少執行時開銷,因為瀏覽器一啟動即已具備隱形特性。
  • 提供更穩定的指紋表面,因為修改較不易在 Chromium 更新時被還原。
  • 提供一個開箱即用的單一二進位檔,適用於任何自動化框架。

如果你只需要快速、腳本層級的解決方案,使用執行時插件即可。對於需要一致性與效能的大規模抓取作業,像 Fortress 這樣的編譯型隱形瀏覽器會更可靠。


結論

Fortress 提供一個加固的 Chromium 版本,移除常見的自動化指紋,讓代理能在不被反機器人系統封鎖的情況下運作。透過將隱形補丁直接整合到瀏覽器二進位檔中,它提供了相較於執行時插件更具效能的替代方案,然而使用者必須自行管理建置更新與平台相容性。


SUMMARY: Fortress is an open‑source Chromium‑based browser that disguises automation traffic to avoid detection and blocking by anti‑bot systems.

TITLE: Fortress – A Stealth Chromium Browser for Unblocked Agent Traffic

Sources