how to disable the Captive Network Support on apple devices

macos >= 10.7 and ios >= 4 now have Captive Network Support that tests for an internet connection by trying to retrieve http://www.apple.com/library/test/success.html. if unsuccessful, it assumes the existence of a captive portal and opens a window for login. this is most useful for apps with no interface, since a browser will display the issue immediately.

i have not tested, but considering its function, assume it’s present on mac’s, iphones, and ipads. i don’t own an iphone or ipad, so have only done this on a macbook.

to disable:

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

to enable:

defaults delete /Library/Preferences/SystemConfiguration/com.apple.captive.control Active