I would like to know if someone here could help me out finding a way to "filter" URLs inside block of texts, comments for example. I wish to be able to "Block" the submitting of such comments on my website.
So for example, if someone would type blablabla http://bla.com
, the application would deny the user from submitting its entry. I was able to make a very "homemade" script which looked inside the text to find stuff like www.
, .com
, http
etc. However it doesn't feel very solid at all.
Thanks !