Developer forum

Forum » Development » Webblog antispam

Webblog antispam


Reply

Is it possible to add a validation picture to the webblog module, to prevent spam post in webblog?


Replies

 
Reply

No, not by default. But if it's ok, you can make a client side validation using JavaScript. You can use the Dynamicweb.DwSecurity.CaptchaImage class to create the image.

 
Reply
Sorensen wrote:

No, not by default. But if it's ok, you can make a client side validation using JavaScript. You can use the Dynamicweb.DwSecurity.CaptchaImage class to create the image.


 

Du you have any exampels on this?

 
Reply

No, coming to think of it, I think you'd be better of using a third party component for this og make your own generator. The class I mentioned is not in use anywhere in Dynamicweb, and thus has not be properly testet. But doing the client side validation requires that you use a PageTemplateExtender to generate the image and to set the value for the javascript validation, but you need to insert that value after the page content has been generated since there are no extenders available for the Weblog module. I wrote an article some months ago describing how to generate tags using this concept which I think would guide you in the right direction: http://developer.dynamicweb.dk/Weblog-16918.aspx?action=ShowArticle&ArticleID=148

 

You must be logged in to post in the forum