You could match the string against [url]http://[/url][www.]money-line.com
There are plenty of functions to match
preg_match is a good one
This is straight from the good ol' manual
<?php
// get host name from URL
preg_match("/^(http:\/\/)?([^\/]+)/i",
"http://www.php.net/index.html", $matches);
$host = $matches[2];
// get last two segments of host name
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
echo "domain name is: {$matches[0]}\n";
?>
This example will produce:
domain name is: php.net
so put in the referrer for http://www.php.net/inde.....