How to check the quality of links