PHP filters and replaces the link URL address in the submission message
There is a flood of information on the Internet. A large number of SEO black links often contain spam links in some comment posts. Use this method to filter out external link URLs
$string = preg_replace('/b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|$!:,.;]*[A -Z0-9+&@#/%=~_|$]/i', '', $string);