I guess if the link back are commented will be accepted too
<!--LINK to Site--> //are accepted

Try always validate the users input data, never forget to safe the query's

PHP Code: 
$siteurl $_POST['siteurl']; //need be in http 
$siteurl parse_url(trim($siteurl)); //remove spaces split the url
$siteurl $siteurl['host']; //get host
$siteurl str_replace("www.","",$siteurl); //remove the www
$ipAddress gethostbyname($siteurl);
if(
$ipAddress === $siteurl//validate if real the site exists

INSERT INTO wcddl_whitelist (`url`) VALUES ('$siteurl')

INSERT INTO wcddl_whitelist (`url`) VALUES ('".mysql_real_escape_string($siteurl)."'//avoiding the sql injections are always an good idea