check URLs or file