Add a Comment Policy Message to Your WordPress Website Comment Form

I will try anything to get rid of spam comments on my website and having a comment policy message on your website is a good idea.

Just a simple message just above the comment form does wonders. Here is the example I used.

Website comment policy:
**Please be aware that all comments made are moderated and SPAM will not be published.
**Comments must relate to the post topic. This website is here to help people, not for your advertising purposes.

I placed this in the comment.php.

Watch this video tutorial to see how I embedded this message into the php code of my WordPress website.



<b>Comment Policy in force from 01 Nov 2010</b>

**Please be aware that all comments made are moderated and <b><i>SPAM will not be published</i></b>.
**Comments must relate to the post topic. This website is here to help people, not for your advertising purposes.


Does a comment policy message work?

In a nutshell, yes. Besides all the monster spam protection plugins, small amounts of spam commenters were getting through. This way it makes them think twice before even bothering to put a comment that will only get deleted in the long run.


  1. yogesh pant says

    hi Mitz,
    a very much informative post. Everyone who is blogging should read it. But, while I tried to put the code mentioned there, I had a problem in putting a space in between the two consecutive lines. It would be very nice of you if you can please tell me what should I do to put a space in between the two lines.
    yogesh pant recently posted..Civil service examination result

  2. vishvast says

    thnx for sharing this nice info i will soon implement it on my blog However, there some spammers who have known how to get through even the toughest security against spam.will sahre it with my other friends too
    vishvast recently posted..Best android phone under 5000 rs

  3. Aasma says

    Hi Mitz,

    I’m sure lot of bloggers who don’t know about coding thing, must be looking for this help. So that they can minimize spam comments.
    Aasma recently posted..MLM Software India

  4. Paul D. Mitchell says

    Hi Mitz, using comments policy message is a great work to fight with spam. I use word verification system in my internet consulting tips website. Using commentluv is another outstanding way to be safe from spam and advertising.

    Thanks a lot for sharing.
    Paul D. Mitchell recently posted..Common Web Design Terms Defined – Part 2

    • Mitz says

      Hi Paul
      Yes you are right there. Commentluv is a great way to stop spam. Also this comment message helps to stop the human spammers. :)

  5. Mahendra says

    Hello mitz..
    spams are the worst thing in the blogosphaere. I also tired of these.So I simply use a plugin to stop spams.ya making a comment policy is a great Idea.Thanks for sharing this trick of adding a comment policy in a blog.I will must go for it.
    Mahendra recently posted..Nokia Asha 210 specs and price with full details

  6. Sudipto says

    Hey Mitz,
    Thanks for sharing this comment policy message with us and I am surely gonna implement it on my blog. Thanks for the image as it helps to understand easily. Yes, number of spam comments are increasing and we have to do something for stopping it.
    Sudipto recently posted..How do You Make a Video with Pictures

  7. Christine says

    I’m loving all of this juicy input, some of which I’ve shamelessly lifted from what you do. I’m about halfway done. I have used some of your suggestions but I found a code error that needs fixing under ‘Adding Comment Policy Text Before or After Comment Form’.

    You have placed the add filter within the function or otherwise it won’t get executed, it needs to be moved outside of the function.

  8. says

    Great tutorial. tell the truth I was planning to highlight the same type of post.. but unfortunately i was lacking the right info0 i wont copypast yours of corse, i just skip the idea oа writing it at all. You did a great job!
    Evan recently posted..5 Free Fashion Drupal themes

  9. santosh says

    hmm great, we have to add this comm. policy to avoiding the spams in our comments although there is commluv system present and there is decrease in spams whether we use clicking the box system also. :-)
    thanks for sharing :-)
    santosh recently posted..The Hangover 3 Coming Soon

  10. Liane Markus says

    Many would probably want to have this kind of comment policy message because spammers cannot be avoided but we can do something about it. Every website should protect and secure their good reputation.
    Liane Markus recently posted..pevonia skin care reviews

  11. Mark Tesa says

    I think this can work since the person posting the spam will actually not want to post that comment knowing it is headed straight to the spam box. However, there some spammers who have known how to get through even the toughest security against spam. runs on the Genesis Framework

Genesis Theme Framework for WordPress

When I changed to the Genesis Framework and the eleven40 Theme my page load score went from 58 to 79 instantly. This was without any optimization at all. The other thing about this framework and theme is that it was so simple to setup that I can highly recommend it to each and every person that visits this blog! Genesis is the smart choice for your WordPress website or blog.