Added option to check url instead of a file