It's a process involving basic Natural Language Processing tools: stopword removal and dictionaries. It works well for English most of the time (when the link is an article) and Chinese not as accurate (Chinese is hard to segment into useful words tbh).
What kind of links are you looking to auto-tag?