More in this section

Forums / Developing with Sitefinity / Spam Posts on Blog Post

Spam Posts on Blog Post

2 posts, 0 answered
  1. Steven Lancaster
    Steven Lancaster avatar
    82 posts
    06 Nov 2009
    29 Mar 2010
    Link to this post
    I have 1 blog post that has spam post with it (i.e. - Viagara anad so forth). Is there a way to make 1 post so that you can not comment on it? Or is there a way to stop it without using captcha or such?

    These comments are not evening being stopped by moderation all other comments are not being posted with out be approved first.

    Thanks in adavnce for your help.

    -Steven Lancaster
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    29 Mar 2010
    Link to this post
    Hello Steven Lancaster,

    If the IP is the same or it comes from some range you could block it by using IIS - IP address and Domain restriction plugin or HttpModule/HttpHander. It is not possible to disable the comments for only one particular post out of the box. You have to map ListPageDetail mode extersnal template and get the currently displayed post using the code below. Then just hide the comments control.

    Telerik.Cms.Engine.ContentManager Manager = new Telerik.Cms.Engine.ContentManager("Blogs");
    // this will return you the id of the currently opened single item
    Guid id = (Guid)((Telerik.Web.IUrlRewriteData)Context.Items[Manager.ProvideContentItemKey]).Data;

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered