MacOS – Disable Wifi Hotspot Popup Window

macoswifi

Is there a way to disable the wifi popup window that was introduced in OS X Lion.

I know I can remove it from known wifi networks, but sometimes I do use this connection (It's the Starbucks free wifi next door). The problem arises when I am using Ethernet and maybe it flakes out, or OS X is doing something else, but It pops this window up to let me connect to the free wifi hotspot. I'd much rather have to do this manually (Using my web browser) rather than the "always on top" popup window it gives me.

I've looked around on the internet and have found no solutions, I was kind of hoping some network guru for sound defaults write blah.blah to disable it.

See image below for the popup window I'm seeing:

enter image description here

Best Answer

While littlerock's answer works, there are better options. Specifically, you can do one of the following. The order is what I would recommend:

  1. Change the system setting. This is preferred, as it's using the OS as designed. Do this on the console and provide your password:

    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false

  2. Prevent OSX from detecting the fact that we're on a captive portal, by editing the hosts file. Apple uses their domain to test whether we are on the Internet or not. To do this, edit the following file as root with a text editor:

    /etc/hosts

    127.0.0.1 captive.apple.com

  3. Last, you can follow littlerock by renaming the following file (as root) to whatever you like:

    /System/Library/CoreServices/Captive Network Assistant.app