Author Topic: automatic form submission  (Read 1657 times)

sanj

  • Posts: 54
    • View Profile
automatic form submission
« 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
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
automatic form submission
« Reply #1 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.

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!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
automatic form submission
« Reply #2 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
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk