Page 1 of 1

spam email

Posted: Sun Apr 19, 2020 9:13 pm
by music19
In my contact form I use the recaptcha, but I still receive spammy email every day
How is that possible?

Re: spam email

Posted: Sun Apr 19, 2020 9:22 pm
by ColinM
Hi music19,

The reCAPTCHA is there to stop form BOTS from automatically filling in a form. It won't stop someone sitting there and filling out a form because that's what a legitimate person would do and there is no way of distinguishing between the two - up to and including reCAPTCHA V2.

Also, if you have an email address on the website that is visible, then spammers can harvest or otherwise use that.

Re: spam email

Posted: Sun Apr 19, 2020 9:37 pm
by music19
I am using rechaptcha v2. But the messages come from the contact form site

Re: spam email

Posted: Sun Apr 19, 2020 9:52 pm
by ColinM
Then some person/s is/are filling in the form.

If you use cPANEL you can black list the email or the domain using Assassin.

Re: spam email

Posted: Sun Apr 19, 2020 10:06 pm
by BaconFries
As Colin's reply to you, there is nothing you can really do to stop anyone manually filling the form to spam you. You can try the method suggested by him, you can also block a range of IP addresses this can work but also has its disadvantage as you may block a legit user. Overall there is no real fail safe to block spam but using the above mentioned may just be enough to make them move on and spam someone else.

Re: spam email

Posted: Sun Apr 19, 2020 11:14 pm
by music19
ColinM wrote: Sun Apr 19, 2020 9:52 pm Then some person/s is/are filling in the form.

If you use cPANEL you can black list the email or the domain using Assassin.
I received more than 2000 emails in two days. I received more than 2000 emails in two days. All with different ip

Re: spam email

Posted: Sun Apr 19, 2020 11:23 pm
by ColinM
Wow, that's a lot. Sounds like you have some work in your cPanel black listing those.

Re: spam email

Posted: Sun Apr 19, 2020 11:38 pm
by music19
ColinM wrote: Sun Apr 19, 2020 9:52 pm Then some person/s is/are filling in the form.

If you use cPANEL you can black list the email or the domain using Assassin.
I think a good option to have in the program is: that you cannot copy and paste text in a text area (but only write)

Re: spam email

Posted: Mon Apr 20, 2020 5:13 pm
by jerryco
You can choose to display text as image.

Re: spam email

Posted: Mon Apr 20, 2020 5:37 pm
by BaconFries
@jerryco how can a user filling the form use a image as text to fill it?

Re: spam email

Posted: Mon Apr 20, 2020 5:45 pm
by jerryco
O sorry. I thought not having it harvested by using a picture.

Re: spam email

Posted: Mon Apr 20, 2020 6:21 pm
by BaconFries
Don't be sorry. I believe music19 is asking how to block someone copy & pasting text into form fields rather that just typing.
There is a couple of ways to achieve one is using javascript /jQuery or adding additional attributes to the input of the text box (editbox) via <input> I will post this solution shortly.

Re: spam email

Posted: Mon Apr 20, 2020 6:48 pm
by BaconFries
To follow up on my previous reply above adding additional attributes to the <input> add the following to each textbox (editbox) by right click select Object HTML and insert using Inside Tag*

Code: Select all

onselectstart="return false" 
onpaste="return false;"onCopy="return false" 
onCut="return false" onDrag="return false" 
onDrop="return false"
And for the javascript /jQuery method the first will display a popup message
Add the following between the <head></head> tags* in Page HTM

Code: Select all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script >
$(document).ready(function() {
    $('#Editbox1').bind("cut copy paste", function(e) {
        e.preventDefault();
        alert("You cannot paste text into this textbox!");
        $('#Editbox1').bind("contextmenu", function(e) {
            e.preventDefault();
        });
    });
});
</script>
Or to use on all <inputs> again insert between <head></head> Page HTML

Code: Select all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script>
$(document).ready(function () {
      $('input[type=text]').bind('copy paste', function (e) {
         e.preventDefault();
      });
   });
</script>