ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: sanj on February 19, 2007, 04:27:53 am

Title: automatic form submission
Post by: sanj on February 19, 2007, 04:27:53 am
hi

I'm havinga huge problem with automated software filling my forms.
how can i stop these?
here are a few examples of what i'm having my database filled with

first name   last name   email
index.html   index.html   main@yandex.net
free movie porn   free movie porn   free@stordo.com
Anon   Anon   ghosh_anirban@yahoo.com

Any help to stop these greatly appreciated

sanj
Title: automatic form submission
Post by: DW on February 19, 2007, 09:00:32 pm
SanJ,

Since the text seems to be quite random and email addresses appear legitimate banning on a per-string basis might not be optimal in this situation.  Something like this, added to the top of signup.php, can work:
Code: [Select]
if(strstr($fname,'index.htm')) exit();
You could also ban based on IP as mentioned in this post (http://listmailpro.com/forum/index.php?topic=1203.0).

What I suggest trying instead (or in addition) is modifying your ListMail form to submit with JavaScript instead of the standard HTML submit.  Replace the submit button with a standard button with an onclick event as follows:
Code: [Select]
<form name=sup id=sup method=post action=http://example.com/mail/signup.php>
<input type=hidden name=list value=1>
Name: <input type=text name=fname>
Email: <input type=text name=email>
<input type=button value="Subscribe" onclick="document.getElementById('sup').submit();">
</form>

Please let me know if I can be of further assistance!
Title: automatic form submission
Post by: sanj on February 20, 2007, 12:19:18 am
is there a way of implementing catpcha in listmail, cos that would really solve a lot of problems

thanks