I want to make an open source app which should know if it can access the outside world (aka the Internet). It can be blocked from the Internet for various reasons, such as not configured proxies or those annoying browser authentications from wireless networks.
Is there some kind of service which I can ping to see if I have access to the Internet, or some recommendation or common practice on verifying it? I know I can just e.g. ping Google but I would prefer to use some specific service or adopt a best practice.