Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Random Spam in my Forms.

  • 24-08-2010 02:25PM
    #1
    Closed Accounts Posts: 314 ✭✭


    So I have 2 basic Forms in my website, using Formail and every now and again I get a bunch of jibberish sent to my inbox from them.

    Obviously some bots are spamming my forms..

    How do I prevent this?

    These are my forms here

    Any help appreciated thanks! :rolleyes:


Comments

  • Closed Accounts Posts: 9,698 ✭✭✭tricky D


    There's a more up-to-date version of this formmail which specifies the recipient address(es) within the script itself as opposed to in a hidden field in the html like the one you're using.

    It's here: http://nms-cgi.sourceforge.net/formmail_compat-3.14c1/

    You need to specify the @referrers, allow_mail_to and @recipients.

    Check EXAMPLES for anything else.


  • Closed Accounts Posts: 314 ✭✭Joebits


    tricky D wrote: »
    There's a more up-to-date version of this formmail which specifies the recipient address(es) within the script itself as opposed to in a hidden field in the html like the one you're using.

    It's here: http://nms-cgi.sourceforge.net/formmail_compat-3.14c1/

    You need to specify the @referrers, allow_mail_to and @recipients.

    Check EXAMPLES for anything else.

    What do you mean? :confused:


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    Joebits wrote: »
    So I have 2 basic Forms in my website, using Formail and every now and again I get a bunch of jibberish sent to my inbox from them.

    Obviously some bots are spamming my forms..

    How do I prevent this?

    These are my forms here

    Any help appreciated thanks! :rolleyes:

    You probably need to implement a CAPTCHA test on the form, I use http://www.google.com/recaptcha which I find quite effective.

    You could also try renaming your Formail.php to something a little more obscure (and changing your form action to reflect the new filename), the spam you are receiving is probably being sent by a bot searching for forms on pages that use formail.php, renaming the file can supposedly fix that. I've never tried this method though.


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    You don't seem to have any mandatory fields on your forms - I just submitted one that had no content. And from a basic usability point of view you should make it just one form, instead of two, and get rid of all unnecessary fields - remove everything except Name, Email, Phone and Comment/Query - people don't like filling out forms.


Advertisement