{"id":18402419,"url":"https://github.com/filosottile/captive-browser","last_synced_at":"2025-04-05T07:06:35.799Z","repository":{"id":40137588,"uuid":"103755408","full_name":"FiloSottile/captive-browser","owner":"FiloSottile","description":"A dedicated Chrome instance to log into captive portals without messing with DNS settings.","archived":false,"fork":false,"pushed_at":"2023-01-30T21:34:06.000Z","size":127,"stargazers_count":450,"open_issues_count":13,"forks_count":29,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-29T06:06:58.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.filippo.io/captive-browser","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FiloSottile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-16T13:50:13.000Z","updated_at":"2025-03-27T14:12:26.000Z","dependencies_parsed_at":"2023-02-16T11:45:37.328Z","dependency_job_id":null,"html_url":"https://github.com/FiloSottile/captive-browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fcaptive-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fcaptive-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fcaptive-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fcaptive-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FiloSottile","download_url":"https://codeload.github.com/FiloSottile/captive-browser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:42:28.264Z","updated_at":"2025-04-05T07:06:35.781Z","avatar_url":"https://github.com/FiloSottile.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# captive-browser\n\nA more secure, dedicated, Chrome-based captive portal browser that automatically bypasses custom DNS servers.\n\n`captive-browser` detects the DHCP DNS server and runs a SOCKS5 proxy that resolves hostnames through it. Then it starts a Chrome instance in Incognito mode with a separate data directory and waits for it to exit.\n\n[Read more on my blog.](https://blog.filippo.io/captive-browser)\n\n## Installation\n\nYou'll need Chrome and Go 1.9 or newer.\n\n```\ngo get -u github.com/FiloSottile/captive-browser\n```\n\nYou have to install a config file in `$XDG_CONFIG_HOME/captive-browser.toml` (if set) or `~/.config/captive-browser.toml`. You can probably use one of the stock ones below. You might have to modify the network interface.\n\n### macOS\n\n```\ncp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-mac-chrome.toml ~/.config/captive-browser.toml\n```\n\nTo disable the insecure system captive browser [see here](https://github.com/drduh/macOS-Security-and-Privacy-Guide#captive-portal). If that doesn't work, disable SIP (remember to re-enable it), and rename `/System/Library/CoreServices/Captive Network Assistant.app`.\n\n### Ubuntu\n\n```\ncp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-ubuntu-chrome.toml ~/.config/captive-browser.toml\n```\n\n### Arch / systemd-networkd\n\n```\ngo get -u github.com/FiloSottile/captive-browser/cmd/systemd-networkd-dns\ncp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-arch-chrome.toml ~/.config/captive-browser.toml\n```\n\n### Arch / dhcpcd\n\n```\ncp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-dhcpcd-chromium.toml ~/.config/captive-browser.toml\n```\n\n## Usage\n\nSimply run `captive-browser`, log into the captive portal, and then *quit* (⌘Q / Ctrl-Q) the Chrome instance.\n\nIf the binary is not found, try `$(go env GOPATH)/bin/captive-browser`.\n\nTo configure the browser, open a non-Incognito window (⌘N / Ctrl-N).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilosottile%2Fcaptive-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilosottile%2Fcaptive-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilosottile%2Fcaptive-browser/lists"}