Page 13 of 14 FirstFirst ... 311121314 LastLast
Results 121 to 130 of 131
  1. #121
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Quote Originally Posted by schoolboy View Post
    The point many people miss is that the website - while being an "easy" way to order goods - is just another sales channel. Many people put up their website and then "sit back" hoping that the orders will just roll in regardless. They hide their phone number, they don't provide an address...
    I don't understand. I didn't hide the telephone, and I didn't provide an address for my business simply because I don't have one.
    I have also provided alternative ways to contact us: by email, FB Messenger, FB fan page, Twitter, You Tube channel, besides the telephone number.
    All I was looking for was to cut only the contact us form, and leave the rest page alone with the alternative ways to contact us.

    I will try instead the advice yaseent gave me. Hopefully don't break anything instead! :)

    I have allready changed the SPAM tags, I need a little help with the next steps:

    Quote Originally Posted by yaseent View Post
    What I would do in your case is changed the name of the field, and the name of the function that tests for that field's input.
    Change all instances of "leaveblank" to "Telephone".
    By all instances, did you mean exactly that, ALL instances?
    E.G.: in
    Code:
    // NO SPAM
      $leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
      // NO SPAM
    both "leaveblank" should be changed?

    Quote Originally Posted by yaseent View Post
    ... and the name of the function that tests for that field's input...
    The name of the function is "leaveblank"?

    Quote Originally Posted by yaseent View Post
    Also, give it an ID or a class, and add this class to your Stylesheet, and apply "display:none;visibility:hidden" - and remove it from the inline styling for now.
    Could you help me with that too?
    Thank you in advance!

  2. #122
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Quote Originally Posted by mario75 View Post
    I don't understand. I didn't hide the telephone, and I didn't provide an address for my business simply because I don't have one.
    I have also provided alternative ways to contact us: by email, FB Messenger, FB fan page, Twitter, You Tube channel, besides the telephone number.
    All I was looking for was to cut only the contact us form, and leave the rest page alone with the alternative ways to contact us.
    I think what Schoolboy said was not specifically directed at you. Just giving tips on giving customers as many ways to contact you as possible. With the Contact Us form, there's no effort required on the customer's part. They don't even need to log in, they're already there. It makes them nice and lazy ;) And gives them a quick lazy way to get in touch with you.

    By all instances, did you mean exactly that, ALL instances?
    E.G.: in
    Code:
    // NO SPAM
      $leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
      // NO SPAM
    both "leaveblank" should be changed?


    The name of the function is "leaveblank"?
    Sorry, what I meant was, change "leaveblank" that is in the function, not the function lol, so make it this:

    PHP Code:
      $leaveblank zen_db_prepare_input($_POST["telephone"]); 
    You can leave the variable "$leaveblank" - that's a variable that the frontend does not see. So only change the $_POST["leaveblank"] to $_POST["telephone"]

    And then, in /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

    Change:

    PHP Code:
    <!-- NOSPAM -->
    <
    input style="visibility:hidden; display:none;" name="leaveblank" type="text">
    <
    br class="clearBoth" />
    <!-- 
    NO SPAM --> 
    to:

    PHP Code:
    <!-- CSSNS -->
    <
    input style="visibility:hidden; display:none;" name="telephone" type="tel" autocomplete="off" id="nstelephone">
    <
    br class="clearBoth" />
    <!-- 
    CSSNS --> 
    Let's leave out the Stylesheet additions for now.

    But if the problem continues, then add the following to your Stylesheet.css file at the very bottom:

    Code:
    #nstelephone
    {
    display:none !important;
    visibility: hidden !important;
    }
    AND re-edit the code in in /includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php to this:

    PHP Code:
    <!-- CSSNS -->
    <
    input name="telephone" type="tel" autocomplete="off" id="nstelephone">
    <
    br class="clearBoth" />
    <!-- 
    CSSNS --> 
    Last edited by yaseent; 18 Jan 2017 at 11:39 AM.

  3. #123
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Thank You very much for help. Will do a.s.a.p.

  4. #124
    Join Date
    May 2012
    Posts
    22
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    It worked!
    I did all your edits and it worked!
    I have implemented ALL your edits including Stylesheet additions from the first time, and it has been almost two days since no spam arrived from "contact us" page. I know it would have been better if I have done it in two steps in order to see which steps worked better, but I didn't want to teach the bots what I have done, nor to waste any time.
    The form remains in place!
    Thank you!

  5. #125
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Found this just recently and I am intrigued. I started to get contact us spam even with captcha on v1.5.4. Now was this Simple CSS/PHP AntiSpam solution integrated in the newest 1.5.5d code? I did a search with developer kit and could not find any code from the suggested changes. What is the status?
    Live and learn... the Zen way.

  6. #126
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,973
    Plugin Contributions
    96

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Quote Originally Posted by mydanilo View Post
    Found this just recently and I am intrigued. I started to get contact us spam even with captcha on v1.5.4. Now was this Simple CSS/PHP AntiSpam solution integrated in the newest 1.5.5d code? I did a search with developer kit and could not find any code from the suggested changes. What is the status?
    The change, in /includes/templates/template_default/templates/tpl_contact_us_default.php, has been provided since Zen Cart 1.5.1's release.

  7. #127
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Quote Originally Posted by lat9 View Post
    The change, in /includes/templates/template_default/templates/tpl_contact_us_default.php, has been provided since Zen Cart 1.5.1's release.
    Thanks, so now I have to find out how spam still is going through. It is not a lot but I wonder if it is done by hand or by bots. They all go something like this:
    HTML Code:
    wh0cd174777 prednisone 5mg tablets generic tadacip clonidine propranolol isoniazid clindamycin
    Seems to originate from Russian Federation, 46.161.9.20 and Poland 155.133.38.215.

    Do you folks still get this kind of spam despite the new measures taken?
    Live and learn... the Zen way.

  8. #128
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    I've installed CAPTCHA mod and a quick check reveals that I must have merged the new code out . Need to fix this or just not install CAPTCHA during upgrade to 1.5.5d. It looks like the CAPTCHA alone seems to let some spammers in anyway.
    Live and learn... the Zen way.

  9. #129
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    Quote Originally Posted by mydanilo View Post
    Do you folks still get this kind of spam despite the new measures taken?
    I got human spam sometime back, but I use a email blocker and that stopped it. The new methods deployed in ZC 1.5.x is one of three levels of honeypot's. The three levels, input test, question test, and confirmation test. I do both input and confirmation test with the mega menu. I tend to avoid the eye test method (CAPTCHA).

    I also had a host that couldn't protect there mail server which was letting spoof spammers in bypassing everything I was doing.
    Dave
    Always forward thinking... Lost my mind!

  10. #130
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Simple CSS/PHP AntiSpam solution for a contact form

    If you don't do business in those countries, you can also block IPs in your htaccess. I have blocked a lot of countries that we don't sell to due to high levels of fraud and that has coincided with many spammer's servers. If we ever get a spam, maybe 3 or 4 a year, I also block their IP.

    Zen Cart and it's community are the best!!

 

 
Page 13 of 14 FirstFirst ... 311121314 LastLast

Similar Threads

  1. v150 Contact Form PHP help
    By valsurfer101 in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2012, 07:43 PM
  2. One solution for selling simple link product, but limited
    By estertester in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jun 2009, 07:32 AM
  3. Move Contact Us form above define_contact_us.php
    By swiss1939 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Nov 2008, 02:39 PM
  4. Contact Us form CSS
    By tee-dot in forum General Questions
    Replies: 6
    Last Post: 29 Jul 2008, 08:43 PM

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