Disable captive network support in OS X
When your Apple device connects to an access point, it tries to download a file to test network connectivity. If the OS can’t download the file, it assumes you’re behind a Captive Portal, basically a web form that requires you to authenticate to the network in various ways. This can be very annoying sometimes.