www.webdeveloper.com
Results 1 to 2 of 2

Thread: Advice needed: Creating a comments section

  1. #1
    Join Date
    Feb 2011
    Posts
    5

    Lightbulb Advice needed: Creating a comments section

    Hi there.

    I've created a my own commenting system for my website using php/sql. It is very simple - the member's id and the comment id are recorded, along with the page id that they are commenting on. The comments are then pulled from the database for that page id (along with the user details) and displayed in ascending order.

    This all works fine.

    I'm after some advice as to any tips/tricks i can use with regards to stopping spam, ie multiple posts of the same thing (such as a 20 second gap between posts?) , stopping identical posts, and to filter things like swear words, links, etc.

    I'm sure lots of you fine people have taken on this challenge before so if you could throw me even the smallest bits of advice from your experiences it would be very much appreciated.

    Thanks,
    Pat.

  2. #2
    Join Date
    Apr 2012
    Posts
    34
    You may want to look into including a captcha (i.e.: an image that has letters / text to do a basic check to see if a human is a human or a bot)

    https://developers.google.com/recaptcha/docs/php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles