Block URL from Profile - Help with preg_match please

Can some one shed some light on why this isnt working please.

I am trying to stop people putting a URL in their profile.

In Profile Fields -> DescriptionMe -> Check

I have added the following:-

return (preg_match('/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i', $arg0));

Also tried:-

return ( preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $arg0 ));

This isnt working and when you try and join it tells me that a URL exists for anything I type in the box.

Any ideas to block these spamming scum would really be appreciated

Thanks

Quote · 15 Jul 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.