Announcement

Collapse
No announcement yet.

Adding Captcha Protection to a Form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding Captcha Protection to a Form

    I am seeking to build a form with captcha protection in a Miva site hosted by Miva Merchant. Tech support suggested I check the forum.

    I have found instructions on other "Miva" web hosting sites (multiple sites), that provide these files PERL/CGI (.pl) files for processing forms and adding captcha protection, but cannot find an actual copy of these files:
    formtomail2.pl
    captcha.pl

    Can anyone please provide these files to be used with a Miva site hosted with Miva Merchant? If other hosting companies provide these files, I'm wondering why Miva support doesn't also have a copy of these files for their clients?

    Any help is greatly appreciated.

    Thank you.

    #2
    Re: Adding Captcha Protection to a Form

    Did you search already the forum?
    http://extranet.mivamerchant.com/for...hlight=captcha
    Andreas Toman
    PCINET, LLC

    Miva Merchant Design, Development, Integration & Support
    We built over 200 Miva Merchant stores!
    Miva shopping cart design & integration service and see our Portfolio!


    e-mail: [email protected]
    web: www.pcinet.com
    LinkedIn: Andreas Toman
    phone: (786) 250-2056 (Miami, FL)

    Comment


      #3
      Re: Adding Captcha Protection to a Form

      Thank you for responding.

      Yes, I have searched the forums and Google and tried a few suggestions with no success.

      I'm looking for the ability to add captcha to just one form, not the whole store.

      I have learned about and downloaded reCAPTCHA from Miva Central, but that is not what I need, as that module pertains to the whole site/store.

      I just need CAPTCHA for one single form. I have found that other Miva web hosting companies provide these two files listed below, for their clients, so I was hoping that Miva support could provide them as well, or maybe someone has a copy they can share. Since I don't have a copy of formtomail2.pl, I'm just assuming there is some customization to this file to work with captcha.pl, and is probably different from the file formmail.pl that I do currently have in my cgi-bin folder for processing the form.
      These are the two files needed:
      /cgi-bin/formtomail2.pl
      And
      /cgi-bin/captcha.pl


      If you take a look at this Miva Web Hosting site, you'll see the instructions and how simple they are and can be used specifically for just one form, as opposed to the whole site.
      http://www.wpcomp.com/support2/form2mail_captcha.html

      If anyone has a copy of these two files, I think this would be my solution.

      Thank you.
      elizabeth ;-)

      Comment


        #4
        Re: Adding Captcha Protection to a Form

        Ask support again...they might not have understood your question.

        Basically, you need them (unless you have ControlPanel/PLESK access) to check that the /cgi-bin directory is enabled to process PERL files. Then, you just get copies of those files off the 'net and FTP them up.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: Adding Captcha Protection to a Form

          This has proven simple for users and very effective at stopping spam bots from sending you email.

          The code below is done with Toolbelt but it can be adapted for Toolkit.

          Add this right before the form button.
          Code:
          <mvt:item name="ry_toolbelt" param="assign|g.first|random(9) + 1" />
          <mvt:item name="ry_toolbelt" param="assign|g.second|random(9) + 1" />
          <mvt:item name="ry_toolbelt" param="assign|g.answer|g.first + g.second" />
          <mvt:item name="ry_toolbelt" param="assign|g.encoded|crypto_base64_encode('53 4d 4f ' $ g.answer $ ' 44 32 c9 62')" />
          
          <input type="hidden" name="redirect" value="&mvt:global:encoded">
          <label for="f1">S P A M challenge? &nbsp; &mvt:global:first; + &mvt:global:second; = </label>
          <input id="f1" type="text" name="challenge" size="4" >&nbsp;&nbsp;
          
          <input name="submit" type="submit" class="button" value="Submit Form">
          When the form is submitted you do this to test the response.
          Code:
          <mvt:item name="ry_toolbelt" param="assign|g.answer|gettoken(crypto_base64_decode(g.redirect),' ',4)" />
          <mvt:if expr="g.challenge NE g.answer">
              <mvt:item name="ry_toolbelt" param="assign|g.error_message|'Error: Invalid spam challenge responce'" />
          Note: The correct answer is embedded in a string of other randomly selected characters. This is just for obfuscation to make reverse engendering more difficult if someone tries.
          <mvt:item name="ry_toolbelt" param="assign|g.encoded|crypto_base64_encode('53 4d 4f ' $ g.answer $ ' 44 32 c9 62')" />

          Also the hidden field name redirect was use again for obfuscation instead of using something obvious like "answer".
          Ray Yates
          "If I have seen further, it is by standing on the shoulders of giants."
          --- Sir Isaac Newton

          Comment


            #6
            Re: Adding Captcha Protection to a Form

            Thank you so much Ray!

            Right now I'm still working with tech support to get the form to work on the DEV site, and as soon as the actual form is working, I'll try this. Thank you again. I really appreciate your help.

            elizabeth ;-)

            Comment

            Working...
            X