The first solution that comes to my mind would be a rail script that iterates through post contents, find links, requests them, checks the status code and does whatever you need. Delete them, replace them (such actions would require a rebake), log them…