Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    40
    Thanks
    36
    Thanked 0 Times in 0 Posts

    Angry Guestbook getting heavily Spammed!

    I have a guestbook created in php. It's only been online about a month but slowly but surely it's getting spammed more and more and now the textual content is starting to get inappropriate for the site. How do I stop this? I'm ftping the txt file and deleting the bad content and uploading it again constantly.

  • #2
    Regular Coder Iszak's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Western Australia
    Posts
    332
    Thanks
    2
    Thanked 58 Times in 57 Posts
    You could add a field on when they posted and do a check to see if it's within say 2 minutes of when they last posted.. etc..

  • Users who have thanked Iszak for this post:

    adehall1980 (07-17-2008)

  • #3
    New Coder
    Join Date
    Jul 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post
    I agree with Iszak. But, if its a guestbook they only really need to reply once. So you could actually stop them from posting more than 1 comment per say... day, week or month? which falls back onto Iszaks idea.

    Or if its bots that are doing this, set up a validation field pretty simple to make

  • Users who have thanked strokemymouse for this post:

    adehall1980 (07-17-2008)

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    add a captcha feature.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • Users who have thanked Spookster for this post:

    adehall1980 (07-17-2008)

  • #5
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,107
    Thanks
    2
    Thanked 326 Times in 318 Posts
    For a guestbook, you need to do everything possible to -

    1) Make sure that it is your form that is submitting to your form processing code,
    2) Make sure that the content is validated and only allow those posts that only contain expected content,
    3) Make sure that any benefit that is being received is removed (such as sending spam emails through your mail server.)
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • Users who have thanked CFMaBiSmAd for this post:

    adehall1980 (07-17-2008)

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Don't have a guestbook.

    I would guess most posts look like this:
    "cool site dude!"
    "you rock!"

    If someone really wants to comment, have them email or call you.

  • #7
    New Coder
    Join Date
    Jun 2007
    Posts
    40
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mlseim View Post
    Don't have a guestbook.

    I would guess most posts look like this:
    "cool site dude!"
    "you rock!"

    If someone really wants to comment, have them email or call you.
    Not really a useful solution there, it's actually for a Motorcycle Training Business and the guestbook area is somewhere the new biker community in the area can communicate, most posting messages of thanks to the staff.

  • #8
    New Coder
    Join Date
    Jun 2007
    Posts
    40
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Spookster View Post
    add a captcha feature.
    Thank you, I've been researching this and it looks like something I can add to the existing code which to be fair I got from one of the many freebies on the net, it just wasn't one of the freebies to include security option obviously

  • #9
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by adehall1980 View Post
    Not really a useful solution there, it's actually for a Motorcycle Training Business and the guestbook area is somewhere the new biker community in the area can communicate, most posting messages of thanks to the staff.
    one solution can be:
    - all poster must be registered with a valid mail address
    - they can post only after you check the mail address and if are registered

    regards

  • Users who have thanked oesxyl for this post:

    adehall1980 (07-21-2008)

  • #10
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    I think a forum would be better than the guestbook idea.

    It would allow two-way discussion about the Training Business,
    have multiple topics, search features, and a great exchange of
    thoughts, ideas ... much like this thread.

    You can see how this discussion started out, how we each provided
    some ideas and finally, discovered the reason for your guestbook.

    Much more valuable information than a simple guest book. Using a
    forum would also draw discussions about other areas of Motorcycle
    Training that the company may not have already addressed.

    Here's an idea of what the forum might look like:
    http://www.google.com/search?hl=en&s...+forum&spell=1


    .
    Last edited by mlseim; 07-17-2008 at 02:59 PM.

  • Users who have thanked mlseim for this post:

    adehall1980 (07-21-2008)


  •  

    Posting Permissions

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