Add rel="nofollow"
-
Please, add rel=”nofollow” to the external links.
// convert link to url $status = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[A-Z0-9+&@#\/%=~_|]/i', '<a href="" rel="nofollow" target="_blank"></a>', $status); // convert @ to follow $status = preg_replace("/(@([_a-z0-9\-]+))/i","<a href=\"https://twitter.com/$2\" rel=\"nofollow\" title=\"Follow $2\" $target >$1</a>",$status); // convert # to search $status = preg_replace("/(#([_a-z0-9\-]+))/i","<a href=\"https://twitter.com/search?q=$2\" rel=\"nofollow\" title=\"Search $1\" $target >$1</a>",$status);
- The topic ‘Add rel="nofollow"’ is closed to new replies.