Support checking urls as well as files.