Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    bug Please Help! How to stop spam on the Contact Us form?

    Hi, I'm presently using: v1.5.5e
    Getting lots of spam emails through the Contact Us form recently. Could anyone tell me please how to remove the Contact Us form? I still would like to keep the page so that our email address will be visible but the Contact Form must go! Please help Cheers!

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Please Help! How to stop spam on the Contact Us form?

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    Default Re: Please Help! How to stop spam on the Contact Us form?

    To be honest I would prefer to just remove the contact us box at all. Is there any way to do that please? Thx

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Please Help! How to stop spam on the Contact Us form?

    You'll have to remove the form in the tpl_contact_us_default.php template file. If that file isn't already in your custom template directory, copy it from template_default and make your modifications to the copy.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    Default Re: Please Help! How to stop spam on the Contact Us form?

    Quote Originally Posted by DrByte View Post
    You'll have to remove the form in the tpl_contact_us_default.php template file. If that file isn't already in your custom template directory, copy it from template_default and make your modifications to the copy.
    Thank you so much for your help. I have found this file but this is all like Chinese to me Could you please please tell me what to remove in there?
    Thank you very much. Here is what the whole file includes:
    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=contact_us.<br />
    * Displays contact us page form.
    *
    * @package templateSystem
    * @copyright Copyright 2003-2013 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version GIT: $Id: Author: DrByte Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $
    * Updated Contact Us Subject for v1.5.1 by Judy Gunderson (stellarweb) 2013-08-16
    * Modified by Anne (Picaflor-Azul.com) Westminster New v1.3
    * Modified by frank18 (isonetwork.net.au) 20150504
    */
    ?>
    <div class="centerColumn" id="contactUsDefault">

    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL')); ?>

    <?php
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>

    <div class="buttonRow success-back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

    <?php
    } else {
    ?>

    <h1><?php echo HEADING_TITLE; ?></h1>


    <?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
    <div id="contactUsNoticeContent" class="content">
    <?php
    /**
    * require html_define for the contact_us page
    */
    require($define_page);
    ?>
    </div>

    <?php
    } ?>

    <?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>

    <?php if (DEFINE_CONTACT_US_STATUS == '0') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php
    } ?>


    <fieldset id="contactUsForm">

    <div class="contact-left">

    <?php
    // show dropdown if set
    if (CONTACT_US_LIST !=''){
    ?>
    <label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>
    <?php echo zen_draw_pull_down_menu('send_to', $send_to_array, 0, 'id="send-to"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    <?php
    }
    ?>

    <label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
    <?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
    <?php echo zen_draw_input_field('email', ($email_address), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="subject"><?php echo ENTRY_EMAIL_SUBJECT; ?></label>
    <?php echo zen_draw_input_field('subject', $subject, ' size="40" id="subject"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <div class="alert"><?php echo FORM_REQUIRED_INFORMATION; ?></div>

    </div>

    <div class="contact-right">
    <label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
    <?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?>

    <?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>

    </div>
    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>

    <?php
    }
    ?>
    </form>
    </div>

  6. #6
    Join Date
    Jun 2010
    Location
    Hervey Bay, QLD Australia
    Posts
    33
    Plugin Contributions
    0

    Default Re: Please Help! How to stop spam on the Contact Us form?

    Quote Originally Posted by DrByte View Post
    You'll have to remove the form in the tpl_contact_us_default.php template file. If that file isn't already in your custom template directory, copy it from template_default and make your modifications to the copy.
    Thank you so much for your help. I have found this file but this is all like Chinese to me Could you please please tell me what to remove in there?
    Thank you very much. Here is what the whole file includes:
    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=contact_us.<br />
    * Displays contact us page form.
    *
    * @package templateSystem
    * @copyright Copyright 2003-2013 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version GIT: $Id: Author: DrByte Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $
    * Updated Contact Us Subject for v1.5.1 by Judy Gunderson (stellarweb) 2013-08-16
    * Modified by Anne (Picaflor-Azul.com) Westminster New v1.3
    * Modified by frank18 (isonetwork.net.au) 20150504
    */
    ?>
    <div class="centerColumn" id="contactUsDefault">

    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL')); ?>

    <?php
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>

    <div class="buttonRow success-back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

    <?php
    } else {
    ?>

    <h1><?php echo HEADING_TITLE; ?></h1>


    <?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
    <div id="contactUsNoticeContent" class="content">
    <?php
    /**
    * require html_define for the contact_us page
    */
    require($define_page);
    ?>
    </div>

    <?php
    } ?>

    <?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>

    <?php if (DEFINE_CONTACT_US_STATUS == '0') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php
    } ?>


    <fieldset id="contactUsForm">

    <div class="contact-left">

    <?php
    // show dropdown if set
    if (CONTACT_US_LIST !=''){
    ?>
    <label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>
    <?php echo zen_draw_pull_down_menu('send_to', $send_to_array, 0, 'id="send-to"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    <?php
    }
    ?>

    <label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
    <?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
    <?php echo zen_draw_input_field('email', ($email_address), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <label class="inputLabel" for="subject"><?php echo ENTRY_EMAIL_SUBJECT; ?></label>
    <?php echo zen_draw_input_field('subject', $subject, ' size="40" id="subject"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

    <div class="alert"><?php echo FORM_REQUIRED_INFORMATION; ?></div>

    </div>

    <div class="contact-right">
    <label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
    <?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?>

    <?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>

    </div>
    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>

    <?php
    }
    ?>
    </form>
    </div>

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Please Help! How to stop spam on the Contact Us form?

    Here's what the entire file contents should be if you're removing the "submission form" but leaving the address contact details, for v1.5.5:
    Code:
    <?php
    ?>
    <div class="centerColumn" id="contactUsDefault">
    
    
    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>
    
    
    <?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
    <div id="contactUsNoticeContent" class="content">
    <?php
    /**
     * require html_define for the contact_us page
     */
      require($define_page);
    ?>
    </div>
    <?php } ?>
    
    
    </div>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v154 spam from contact us form, none if the fixes work.
    By vanhorn_s in forum General Questions
    Replies: 11
    Last Post: 12 Jun 2018, 07:05 PM
  2. v154 Suddenly lots of spam through the contact us form.
    By vanhorn_s in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2017, 12:34 AM
  3. Replies: 2
    Last Post: 29 Jan 2013, 12:12 PM
  4. Help needed - Unwanted Contact Form Spam
    By sgallasch in forum General Questions
    Replies: 9
    Last Post: 16 Dec 2009, 06:37 PM
  5. How do you stop the SPAM ?
    By Vinyl Signs in forum General Questions
    Replies: 4
    Last Post: 14 Aug 2007, 09:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR