Results 1 to 4 of 4

Thread: Email address triggering MANY_URLS

  1. #1
    Join Date
    Jul 2007
    Posts
    9

    Default Email address triggering MANY_URLS

    How do I set FormMail to not accept any urls in the form, but ignore email addresses?

    None of my clients ever have a need to send me a url in this form so I originally set my config file with:
    define("ATTACK_DETECTION_MANY_URLS",1);
    define("ATTACK_DETECTION_MANY_URL_FIELDS",1);
    This rejected any results containing a url, which completely eliminated the tons of spam mails I used to receive in a day as they all had at least one url in the results. But my problem now is that some (not all) of my legitimate requests are being rejected by certain email address entered into the email field. No url was entered. Just an email address @dyn-intl.com, but it triggered the Attack Detection Many Urls (as stated in the alert email).

    For now I have it set with:
    define("ATTACK_DETECTION_MANY_URLS",2);
    define("ATTACK_DETECTION_MANY_URL_FIELDS",2);
    But will this open the gates again for the spammers to send me all their junk?

    Thanks,

    Mandy

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Email address triggering MANY_URLS

    Hi,

    It's a bug in the patterns used to look for URLs.

    I'll try to issue a fix shortly.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Email address triggering MANY_URLS

    Hi,

    Please replace this configuration setting in FormMail:
    PHP Code:
    $ATTACK_DETECTION_URL_PATTERNS = array(
     
    '(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com|org|net|biz|info|name|pro|tel|asia|cat)\b',
     
    '(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com{0,1}|org|net)\.[a-z][a-z]\b'); 
    As you can see, the patterns are complicated and we didn't quite get it right for domains with hyphens.

    Sorry for the inconvenience.

    Please test thoroughly and let me know if you have any further issues with this.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Jul 2007
    Posts
    9

    Default Re: Email address triggering MANY_URLS

    This did fix the issue.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditions for a valid email address
    By bwv in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-Jul-2005, 08:24 PM
  2. email address field
    By darren777 in forum FormMail Subscription Support
    Replies: 4
    Last Post: 04-Mar-2005, 07:31 PM
  3. - Not a vaild char in email address
    By mdegan in forum FormMail Subscription Support
    Replies: 3
    Last Post: 02-Mar-2005, 05:02 AM
  4. User From Address
    By mdegan in forum FormMail Subscription Support
    Replies: 3
    Last Post: 02-Mar-2005, 12:35 AM
  5. Don't want to force entering an email address
    By Goji in forum FormMail Subscription Support
    Replies: 10
    Last Post: 22-Jun-2004, 01:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •