Automagically archive external links

Looking back at my almost-a-decade-old forum, I’ve noticed there are quite a few links posted that are now kind of … gone. Either the domain expired, the article was deleted or something else, the content is gone.

I wonder if there is any way that whenever a post contains a link, that link will be auto-sent to (or similar) and automatically insert a link into the post. In a similar fashion, twitter links should be sent to a service like Thread Reader.

Although, not necesarily to, even a self-hosted service, like this.