How do you prevent spamming through a form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #1

    How do you prevent spamming through a form?

    I built a simple guestbook script and recently it's been getting hit pretty hard by poker spammers with all kinds of various crap... over 200 submissions in 2 days.

    The question is, what's a good way to prevent that without limiting genuine guestbook submissions?

    And no, I don't want to go with image verification because it's just a guestbook for every day people. I don't want to make it a chore for them.

    I checked the referrer and it is coming from my own site, so it's not an off the site submission. Someone must have built a spammer that submits the actual form on the page.. so I can't just check for the referrer
    This is me on facebook
    This is me on twitter
  • NdO
    Confirmed User
    • Jun 2006
    • 336

    #2
    You could try to block them based on their ip's. Another option is a blacklist. (With urls / poker / pharmecy words etc.)

    Comment

    • scottybuzz
      Too lazy to set a custom title
      • May 2006
      • 14799

      #3
      yeh goodluck for you,
      $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        Originally posted by NdO
        You could try to block them based on their ip's. Another option is a blacklist. (With urls / poker / pharmecy words etc.)
        different IP for each submission, I thought of that myself...

        It's looking more and more like I'll have to go the "keyword" route, and try to keep on top of things that can't be submitted. That's going to suck though.

        Especially since this seems to be affiliate type crap, which means getting some messed up urls such as online-poker-games . halpinos.com/ and internetpoker2.tblog . com/
        (urls broken cause I don't want to send them any more traffic than they already get)
        Last edited by StuartD; 07-09-2006, 05:45 AM.
        This is me on facebook
        This is me on twitter

        Comment

        • EdgeXXX
          Confirmed User
          • Oct 2005
          • 5816

          #5
          Tough to do without "making it a chore" for the legitimate people. What about screening for (filtering) certain keywords like poker, join, etc.?
          .
          .
          .
          .

          I have a sig

          Comment

          • MaddCaz
            Confirmed User
            • Mar 2006
            • 9483

            #6
            Originally posted by EdgeXXX
            Tough to do without "making it a chore" for the legitimate people. What about screening for (filtering) certain keywords like poker, join, etc.?

            BigCocks.com -
            MatureWomen.com -
            Tranny.com -
            DrunkGirls.com -
            TeenGirls.com -
            MonsterCock.com and
            many more... Click
            here to see them all!

            Comment

            • Damian_Maxcash
              So Fucking Banned
              • Oct 2002
              • 12745

              #7
              Single letter verification would be ok on a small site...."Press '$randomletter' to post your comment" instead of a submit button for example.

              Nobody is going to bother writing a script to post on a single small site - it would just go into the 'not worth it' file.

              On a larger site where it would be worth the time and effort then I am out of ideas.

              Comment

              • SMG
                Confirmed User
                • Aug 2003
                • 1798

                #8
                there are a few ways to do it from the ip things to other tricks that keep out most automated submissions ... if it's a php script, I can talk with you about hardening the script a bit to stop the spammers, just hit me up on icq 6354 0110
                TGP Webmasters: sign up for the top 100 tgp list!
                Submit galleries
                If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.

                Comment

                • everestcash
                  Confirmed User
                  • Apr 2002
                  • 2194

                  #9
                  got the same problem - with regbots on my dating forum & my blogs ((
                  on blogs i simply suspend posts with urls in them
                  on board i use visual code, email confirmation & ban spammers email periodicaly - but it doesn't help much ((

                  Comment

                  • everestcash
                    Confirmed User
                    • Apr 2002
                    • 2194

                    #10
                    Originally posted by damian2001
                    Single letter verification would be ok on a small site...."Press '$randomletter' to post your comment" instead of a submit button for example.
                    sounds interesting
                    will try it )
                    thanks

                    Comment

                    • EdgeXXX
                      Confirmed User
                      • Oct 2005
                      • 5816

                      #11
                      Originally posted by damian2001
                      Single letter verification would be ok on a small site...."Press '$randomletter' to post your comment" instead of a submit button for example.

                      Nobody is going to bother writing a script to post on a single small site - it would just go into the 'not worth it' file.

                      On a larger site where it would be worth the time and effort then I am out of ideas.
                      This is a good idea and I like it. The only problem is that everyone is assuming that these are automated spams, which they may be, but what if it is just someone that is manually pasting the spam? If this were the case, they would have no problem clicking buttons or even verifying images. But like I said, I love your idea as an added measure of security.
                      .
                      .
                      .
                      .

                      I have a sig

                      Comment

                      • smutx
                        Confirmed User
                        • Jan 2004
                        • 1190

                        #12
                        Originally posted by StuartD
                        I built a simple guestbook script and recently it's been getting hit pretty hard by poker spammers with all kinds of various crap... over 200 submissions in 2 days.

                        The question is, what's a good way to prevent that without limiting genuine guestbook submissions?

                        And no, I don't want to go with image verification because it's just a guestbook for every day people. I don't want to make it a chore for them.

                        I checked the referrer and it is coming from my own site, so it's not an off the site submission. Someone must have built a spammer that submits the actual form on the page.. so I can't just check for the referrer
                        try renaming the input feilds to something different.. like someone eles said no one really targets a site, its done on a mass level is it should do the trick

                        icq: 236148465

                        Comment

                        • WiredGuy
                          Pounding Googlebot
                          • Aug 2002
                          • 34517

                          #13
                          Another idea involves making use of javascript. Basically, encode the html into a cryptic javascript such that bots can't parse the parameters out of the form. This does of course mean only javascript enabled users can use the form though.
                          WG
                          I play with Google.

                          Comment

                          • StuartD
                            Sofa King Band
                            • Jul 2002
                            • 29903

                            #14
                            Originally posted by WiredGuy
                            Another idea involves making use of javascript. Basically, encode the html into a cryptic javascript such that bots can't parse the parameters out of the form. This does of course mean only javascript enabled users can use the form though.
                            WG
                            Hmm... that's certainly a thought... that would be a good way to prevent spammers from mass submitting.
                            This is me on facebook
                            This is me on twitter

                            Comment

                            • WiredGuy
                              Pounding Googlebot
                              • Aug 2002
                              • 34517

                              #15
                              Originally posted by StuartD
                              Hmm... that's certainly a thought... that would be a good way to prevent spammers from mass submitting.
                              Ideally the OCR will probably stop the most spam and should work for most users. Javascript encryption would mean a small percentage of users will be unable to use it but should stop spammers as well. To me, I'd prefer the OCR with a simple 2-3 character recognition, that should hopefully not inconvenience the surfers too much.
                              WG
                              I play with Google.

                              Comment

                              • CamsLord
                                Confirmed User
                                • Jun 2006
                                • 3663

                                #16
                                yea ocr images will fix that
                                sig for sale - pornpicz(at)gmail.com

                                Comment

                                • fris
                                  I have to go potty
                                  • Aug 2002
                                  • 55853

                                  #17
                                  i find image verify works best. anything without that on any kind of form is just silly.
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                  My Newest Theme

                                  Comment

                                  • WiredGuy
                                    Pounding Googlebot
                                    • Aug 2002
                                    • 34517

                                    #18
                                    Another suggestion I also wanted to make was based on a simple question any human can answer, thereby making a simple password verification type deal. For example, instead of asking for an OCR just ask a simple question like what color is the sky? Bots will have no idea and leave this query blank, humans will just enter blue and get right through.
                                    WG
                                    I play with Google.

                                    Comment

                                    • line
                                      Registered User
                                      • Jul 2002
                                      • 63

                                      #19
                                      Wow, after seeing these suggestions I can see why spam is so pervasive.
                                      [whore yourself here]

                                      Comment

                                      • SmokeyTheBear
                                        ►SouthOfHeaven
                                        • Jun 2004
                                        • 28609

                                        #20
                                        add this to your form <input type=hidden name=botcheck value=nobot>

                                        then in the php script put this as your first line

                                        if ($botcheck == "nobot") { } else {

                                        $url = "SPAM"

                                        }


                                        where $url would be one of the items in your form like an url that will then get turned blank if the hidden input isn't present.

                                        This isnt a great solution , but this will prevent most box-automated type submissions.

                                        Just change the "botcheck" to something different every so often ( on both the form and the script )
                                        hatisblack at yahoo.com

                                        Comment

                                        • StuartD
                                          Sofa King Band
                                          • Jul 2002
                                          • 29903

                                          #21
                                          Some great suggestions. Thanks everyone
                                          This is me on facebook
                                          This is me on twitter

                                          Comment

                                          • Why
                                            MFBA
                                            • Mar 2003
                                            • 7230

                                            #22
                                            turing image.

                                            Comment

                                            Working...