Forum Moderators: phranque

Message Too Old, No Replies

I want to disallow links in "user comments" form

         

mmmwowmmm

6:28 pm on Nov 28, 2005 (gmt 0)

10+ Year Member



On many pages of my site I have a simple "leave a comment" form that instantly posts comments on the webpage. The problem is that if you type in a web address (like http://www.example.com) it will post an actual link, and I don't want that. I know how guest books get spammed like crazy.

Is there some way I can prevent people from posting links on a page? Like this site does, for example - if I type in http://www.example.com, it does not create a link, it's just text. How does that work?

I was thinking maybe some snippit of code in the header, or does anyone know of a free "post a comment" type of script that will disallow links? Or something? Thanks.

mattglet

11:12 pm on Nov 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would guess that the display that is showing the comments has functionality that automatically "hot links" anything in URL format. Are you using a 3rd party script, or do you have an in-house developer?

mmmwowmmm

12:00 am on Nov 29, 2005 (gmt 0)

10+ Year Member



Actually I'm using (don't laugh) Frontpage.

As it turns out I was able to solve the problem by changing the posting format from HTML to Formatted Text, so now it just displays the url and is not an active link. I knew it would be something simple.