Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2007
    Posts
    813
    Plugin Contributions
    0

    Default prevent people from using contact us for spam

    What is the best way to prevent people from using the contact us form to send spam?

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,031
    Plugin Contributions
    1

    Default Re: prevent people from using contact us for spam

    Zencart requires that a user be logged in to use the Contact Us form, so far as I know. That should stop most people. Are you having a problem with it?

  3. #3
    Join Date
    Feb 2007
    Posts
    813
    Plugin Contributions
    0

    Default Re: prevent people from using contact us for spam

    Hi,

    Yes I've had some spam from my contact us form.

    Is there an admin setting to require a user to be logged in to use the contact us form?

    I found something in the admin that said "Emails must send from known domain?" and I set that to yes, but I don't know if that helps or not...

    Thanks.

  4. #4
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

    Default Re: prevent people from using contact us for spam

    Captcha using TTF & GD mod works great for me.

    It puts those admittedly annoying letters to type in before you submit a request. Annoying but necessary these days and this one at least provides readable letters every time.

    http://www.zen-cart.com/index.php?ma...roducts_id=551

  5. #5
    Join Date
    Nov 2006
    Posts
    58
    Plugin Contributions
    0

    Default Re: prevent people from using contact us for spam

    I just started having this problem. I thought about adding one of the captchas, but I'm blind and despise the things, especially those that have no audio. If they have no audio, people with disabilites can not use them.

  6. #6
    Join Date
    Jan 2007
    Posts
    160
    Plugin Contributions
    0

    Default Re: prevent people from using contact us for spam

    Quote Originally Posted by stevesh View Post
    Zencart requires that a user be logged in to use the Contact Us form, so far as I know. That should stop most people. Are you having a problem with it?
    Are you sure about this? I can submit a message via the Contact Us form without being logged in. I am a new user using 1.3.8a.

    Is there a way to set a flag so that a user must be logged in?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,031
    Plugin Contributions
    1

    Default Re: prevent people from using contact us for spam

    Nope - I was led astray on that. Look at this thread:

    http://www.zen-cart.com/forum/showthread.php?t=90119

  8. #8

    Default Re: prevent people from using contact us for spam

    i really don't want to add a captcha. i just want to prevent URL spam at this point and am trying to add something like the following to the tpl_contact_us_default.php file, but cannot get it to work. anyone have any ideas on how to make it work? here is the code:

    <?php
    $SpamErrorMessage = "No Website URLs permitted";

    if (preg_match("/http/i", "$contactname")) {echo "$SpamErrorMessage"; exit();}
    if (preg_match("/http/i", "$email")) {echo "$SpamErrorMessage"; exit();}
    if (preg_match("/http/i", "$enquiry")) {echo "$SpamErrorMessage"; exit();}
    ?>
    http://www.ExtremaHosting.com

    Favorite Quote: "If your output exceeds your input, then your upkeep will be your downfall." (anon.)

  9. #9
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,145
    Plugin Contributions
    0

    Default Re: prevent people from using contact us for spam

    I'd love to find a way to prevent all those "we'll enter your products for you" and "we'll drive new customers to your site" emails, but captcha won't help because they don't appear to be generated automatically. I could be wrong. If anyone has any ideas, I'd love to hear them.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  10. #10
    Join Date
    Jan 2004
    Posts
    58,242
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: prevent people from using contact us for spam

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Spam sent through contact form
    By jcp in forum General Questions
    Replies: 26
    Last Post: 28 Apr 2010, 04:01 PM

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
  •