Check URL before adding it to the queue