View Single Post
Old 07-16-2009, 08:25 PM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
of course it's possible, depending on the script you can use something like

Code:
if (!preg_match("/^(http?:\/\/+[\w\-]+\.[\w\-]+)/i", $some_value))
{
    $some_value = '';
}

that will leave $some_value (ie any URL) empty. Of course you may change to something else, but it will look better this way.


you'd also use preg_replace() or ereg() and play with regex if you want to asign some specific value, there are many ways to do it.

This being said, you're supposed to use NOFOLLOW anyway
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote