check input links and filter the wrong links