Email Address Validation in Forms

Hi everyone,
I volunteer as a web designer for a local nonprofit newspaper
here in Cleveland, and am having a heck of a time with spambots and
our email form. Bots send all kinds of garbage on casinos, viagra,
porn, etc. several times throughout the day to the point that we're
overwhelmed!
My question is, how do I validate email addresses so that
fake addresses cannot submit the form? Is there a line of code I
can include?
The form is located
here.
Thank you!

Joe:
Is there any way to check for an SPF record?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Joe Makowiec" <[email protected]> wrote in
message
news:[email protected]...
> On 04 Dec 2006 in macromedia.dreamweaver, Jeff from
Cleveland wrote:
>
>> I volunteer as a web designer for a local nonprofit
newspaper here
>> in Cleveland, and am having a heck of a time with
spambots and our
>> email form. Bots send all kinds of garbage on
casinos, viagra,
>> porn, etc. several times throughout the day to the
point that we're
>> overwhelmed!
>>
>> My question is, how do I validate email addresses so
that fake
>> addresses cannot submit the form? Is there a line of
code I can
>> include?
>>
>> The form is located
>>
http://www.nhlink.net/plainpress/html/contactus.htm.
>
> I'm going to differ with my esteemed colleagues.
CAPTCHAs aren't the
> way to go. The big reason is that they are a disaster
for
> accessibility; in addition they look like crap, and they
aren't
> reliable. See the article at Wikipedia for some pros and
cons:
>
>
http://en.wikipedia.org/wiki/Captcha
>
> There are a few things you can do:
> - I haven't yet seen a way to check an email address for
validity. You
> can, however, check if the domain name submitted has an
MX record (Mail
> eXchange). PHP:
>
> $valid_domain = checkdnsrr($domain, 'MX');
>
>
http://www.php.net/manual/en/function.checkdnsrr.php
>
> - Check for '@' characters in any field other than the
return address.
> Very few legitimate correspondents will use them; many
spammers use
> them in an attempt to spoof the form (do a web search
for 'php mail
> injection).
>
> - Use an added dropdown list field that has to be
changed in order to
> check if there is a real user there:
>
> <select name="okaytosend" id="okaytosend">
> <option>Change this item</option>
> <option value="xyzzy">OK to send</option>
> </select>
>
> The following two methods work for now; no guarantee
when spambots will
> catch up with them:
> - Spambots (at least the ones I've seen) don't
understand cookies, so
> you can set a cookie or start a session on the form
page, and check for
> the cookie or session on the form processing page.
>
> - Spambots (at least the ones I've seen) don't
understand javascript,
> so you can use an (external) script to write a hidden
field. If you
> have the field, high probability it's a person; if you
don't, high
> probability it's a bot. (I keep track of javascript use
on one of my
> sites; at last check, about 1.7% of site visitors had
javascript
> disabled, so you'll get a few false negatives.)
>
> --
> Joe Makowiec
>
http://makowiec.net/
> Email:
http://makowiec.net/email.php

Similar Messages

  • Email address validation pattern

    First off, I'm using JDK 1.4.2_07. What I'm trying to do is validate email addresses with the String.matches(String pattern) function. What I'm having a problem with is coming up with the regex pattern that represents any syntactically valid email address. If someone has a regex pattern that does represent any syntactically valid email address, I would appreciate it if you posted it in a reply to this message. Thanks!
    --Ioeth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here is the struts implementation of email address validation:
    <validator name="email"
    classname="org.apache.struts.validator.FieldChecks"
    method="validateEmail"
    methodParams="java.lang.Object,
    org.apache.commons.validator.ValidatorAction,
    org.apache.commons.validator.Field,
    org.apache.struts.action.ActionErrors,
    javax.servlet.http.HttpServletRequest"
    depends=""
    msg="errors.email">
    <javascript><![CDATA[
    function validateEmail(form) {
    var bValid = true;
    var focusField = null;
    var i = 0;
    var fields = new Array();
    oEmail = new email();
    for (x in oEmail) {
    if ((form[oEmail[x][0]].type == 'text' ||
    form[oEmail[x][0]].type == 'textarea') &&
    (form[oEmail[x][0]].value.length > 0)) {
    if (!checkEmail(form[oEmail[x][0]].value)) {
    if (i == 0) {
    focusField = form[oEmail[x][0]];
    fields[i++] = oEmail[x][1];
    bValid = false;
    if (fields.length > 0) {
    focusField.focus();
    alert(fields.join('\n'));
    return bValid;
    * Reference: Sandeep V. Tamhankar ([email protected]),
    * http://javascript.internet.com
    function checkEmail(emailStr) {
    if (emailStr.length == 0) {
    return true;
    var emailPat=/^(.+)@(.+)$/;
    var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
    var validChars="\[^\\s" + specialChars + "\]";
    var quotedUser="(\"[^\"]*\")";
    var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/;
    var atom=validChars + '+';
    var word="(" + atom + "|" + quotedUser + ")";
    var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
    var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$");
    var matchArray=emailStr.match(emailPat);
    if (matchArray == null) {
    return false;
    var user=matchArray[1];
    var domain=matchArray[2];
    if (user.match(userPat) == null) {
    return false;
    var IPArray = domain.match(ipDomainPat);
    if (IPArray != null) {
    for (var i = 1; i <= 4; i++) {
    if (IPArray[i] > 255) {
    return false;
    return true;
    var domainArray=domain.match(domainPat);
    if (domainArray == null) {
    return false;
    var atomPat=new RegExp(atom,"g");
    var domArr=domain.match(atomPat);
    var len=domArr.length;
    if ((domArr[domArr.length-1].length < 2) ||
    (domArr[domArr.length-1].length > 3)) {
    return false;
    if (len < 2) {
    return false;
    return true;
    }]]>
    </javascript>
    </validator>

  • How to i get my one line email address from a form to dissapear from my monitor screen?

    Hi,
    I have a iMac running OS X Yosemite ver 10.10.1
    my iMac is Mid 2011, running 16 BF Ram
    I have seen an annoying floating email address from a form showing up on my monitor screen, even though the form was closed.
    Even if I move any open windows, the email address is still showing on my screen.
    Anyone have any idea on how I may delete this image or whatever it is?  Thanks.  Donna

    Try relaunching the Finder,  ➙ Force Quit.
    Otherwise reboot.

  • How do I embed an email address in a form?

    How do I embed an email address in a form?

    In the Design tab add a formatted text field to your form.  In the formatted text field select the text you want to create a link with.  Go to menu Insert-> Link...  In the Insert Link dialog you will add an email address to the bottom field (URL or Email) and click on the Insert button.  The email address should be in the form of [email protected]
    -Jeff

  • Help needed in email address validation !

    Hi all,
    I am developing a web page in which there is a text box and a submit buttion. User enters his email id and clicks the button. As soon as the button is clicked, the email- address validation should be done.
    some thing like,
    only one @ shold be there,
    the address should terminate with .net, .com, .org.....
    there should not be any special characters like / , ?, < > \ etc..;
    It should be in JSP or JAVA Script
    Can anyone help me ????
    Regards
    AShvini

    function validateEmail(email) {
        // A very simple email validation checking.
        // you can add more complex email checking if it helps
        var splitted = email.match("^(.+)@(.+)$");
        if(splitted == null) {
            return false;
        if(splitted[1] != null ) {
            var regexp_user=/^\"?[\w-_\.\']*\"?$/;
            if(splitted[1].match(regexp_user) == null) {
                    return false;
        if(splitted[2] != null) {
            var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
            if(splitted[2].match(regexp_domain) == null) {
                var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
                if(splitted[2].match(regexp_ip) == null) {
                        return false;
            }// if
            return true;
        return false;
    }Here's one in JS. A little bit of modification could make it suited to your requirements!

  • EMail Address Validation - Shell Script

    Hi,
    I have a custom concurrent program (Shell Script Program). One of the input parameter is Email address.
    In my code, I need to validate email address format (Ex: [email protected])
    Can anyone paste the code snippet.
    I have tried with the below validation
    case $EMAIL_ID in
         *@?*.?*) echo "Email Address Validated.";;
         *) echo "Invalid Email Address. Please enter the correct format of email address and re-run the program";
    exit 1;;
    esac
    This validation is failing in this scenario xxx,[email protected] / xxx [email protected] (If user enters the email address with comma or a blank space. This validation is returning success message)
    Regards
    BS

    Please look up the syntax for this by typing
    man mailx
    on the shell command prompt.
    Please stop asking Unix specific questions in an Oracle forum. There are more than enough Unix forums on the Internet.
    Please refrain from asking further doc questions here.
    You are in gross violation of the 'Forums Etiquette' post.
    Sybrand Bakker
    Senior Oracle DBA

  • Email Address Validation in JavaScript?M

    Hi, everyone,
    I need to validate the email address in javascript.
    Does anyone has a COMPLETED solution?
    Any reply would be valuable.
    Thank you in advance.

    BalusC wrote:
    Modi wrote:
    you can validate email address using java file.
    Take a look here
    [http://www.devdaily.com/blog/post/java/java-email-address-validation-class|http://www.devdaily.com/blog/post/java/java-email-address-validation-class]
    This is written by a 10 year old child and this identifies [email protected] as valid. It is not.
    [http://www.devx.com/tips/Tip/28334|http://www.devx.com/tips/Tip/28334]
    This identifies [email protected] as valid. It is not.
    [http://java-servlet-jsp-web.blogspot.com/2009/06/best-url-and-email-validation-using.html|http://java-servlet-jsp-web.blogspot.com/2009/06/best-url-and-email-validation-using.html]
    This does not validate .museum tld's, nor email addresses with RFC822/5322 valid characters like ~, #, & and so on.
    With other words, come up with better suggestions, kid.
    >
    >you can validate email address using java file.
    Take a look here
    [http://www.devdaily.com/blog/post/java/java-email-address-validation-class|http://www.devdaily.com/blog/post/java/java-email-address-validation-class]
    This is written by a 10 year old child and this identifies [email protected] as valid. It is not.
    [http://www.devx.com/tips/Tip/28334|http://www.devx.com/tips/Tip/28334]
    This identifies [email protected] as valid. It is not.
    [http://java-servlet-jsp-web.blogspot.com/2009/06/best-url-and-email-validation-using.html|http://java-servlet-jsp-web.blogspot.com/2009/06/best-url-and-email-validation-using.html]
    This does not validate .museum tld's, nor email addresses with RFC822/5322 valid characters like ~, #, & and so on.
    With other words, come up with better suggestions, kid.
    Okey fine.
    Now see these links
    [https://glassfish.dev.java.net/source/browse/glassfish/mail/src/java/javax/mail/#dirlist|https://glassfish.dev.java.net/source/browse/glassfish/mail/src/java/javax/mail/#dirlist]
    [https://glassfish.dev.java.net/source/browse/glassfish/mail/src/java/javax/mail/internet/InternetAddress.java?rev=1.6&view=markup|https://glassfish.dev.java.net/source/browse/glassfish/mail/src/java/javax/mail/internet/InternetAddress.java?rev=1.6&view=markup]
    I guess u will get right answer from these links and code also whatever u wants to do.
    might be it will not completely useful but i think u will get some ideas.

  • Email address validation, is there a way to use Regex or other fuzzy searching?

    I would like to use PL/SQL for Email address validation, is there a way to use Regex (regular expressions) or some other fuzzy searching for that? Using % and _ wildcards only take you so far...
    I need something that will verify alphanumeric charectors (no ",'.:#@&*^ etc.) any ideas?
    Current code:
    if email not like '_%@_%.__%' or email like '%@%@%' or email like '% %' or email like '%"%' or email like '%''%' or email like '%
    %' then
    The last line is to make sure there are no linebreaks in the middle of the email address, is there a better way to signify a line break, like \n or an ascii equivilent?

    Michael:
    The as noted in the previous post, DBI is a Perl package that allows Perl to talk to various databases, including Oracle. We use DBI on several UNIX servers, and it does not require ODBC, and I have always found it to be extremely quick. Things may be different in the Windows world.
    If you are spooling files out to run through Perl anyway, you may want to take a look at DBI. You could probably modify your existing scripts to use DBI fairly easily. The basic structure using DBI is like:
    use DBI;
    my dbh;       # A database handle
    my sth;       # A statment handle
    my sqlstr;    # SQL statement
    my db_vars;   # Variables for your db columns
    # Connect to the database
    $dbh = DBI->connect( "dbi:Oracle:service_name","user/password");
    $sqlstr = 'SELECT * FROM emp WHERE id = ?' # even takes bind variables
    #Prepare statement
    $sth = $dbh->prepare($sqlstr);
    $sth->execute(12345);  # Execute with values for bind if desired
    # Walk the "cursor"
    while (($db_vars) = $sth->fetchrow_array()) {
       your processing here

  • BP Email Address validation

    Hi,
    Is there anyway to turn off email address validation which occurs when creating Business partner.
    For example, abc.com@acb is an invalid email id and the system doesnt allow to save BP. But i want to save the BP even though email id is invalid.
    Thanks,
    Karthik.

    Hi Kartik,
    Only way to remove validation is to change the standard code.Go to program LSZA0F33 and comment FM
    SX_INTERNET_ADDRESS_TO_NORMAL.Please refer the below mentioned code.
    *{   DELETE         PDCK902820                                        1
    *\  CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'
    *\       EXPORTING
    *\            address_unstruct    = unstruct
    \           COMPLETE_ADDRESS    = 'X'
    *\       IMPORTING
    *\            address_normal      = normal
    \           local               =
    \           domain              =
    \           COMMENT             =
    \            addr_normal_no_up_with_comment                   "1280i
    \                                = normal_w_umlaut            "1280i
    *\       EXCEPTIONS
    *\            error_address_type  = 1
    *\            error_address       = 2
    *\            error_group_address = 3
    *\            OTHERS              = 4.
    *\  IF sy-subrc <> 0.
    \550i+
    *\    error_table-msg_id     = sy-msgid.
    *\    error_table-msg_type   = sy-msgty.
    *\    error_table-msg_number = sy-msgno.
    *\    error_table-msg_var1   = sy-msgv1.
    *\    error_table-msg_var2   = sy-msgv2.
    *\    error_table-msg_var3   = sy-msgv3.
    *\    error_table-msg_var4   = sy-msgv4.
    \    error_table-fieldname  = 'SMTP_ADDR'.                   "863i
    *\    APPEND error_table.
    \    worst_error = c_error_occurred.                         "863u
    *\    IF g_check_address IS INITIAL.
    \      error_table-msg_type = c_warning_occurred.            "863u
    *\      MODIFY error_table
    \      TRANSPORTING msg_type  WHERE msg_type = c_error_occurred."863u
    \      worst_error = c_warning_occurred.                     "863u
    *\      help_smtp = smtp-smtp_addr.
    *\      TRANSLATE help_smtp TO UPPER CASE.                 "#EC TRANSLANG
    *\      CONDENSE help_smtp.
    *\      p_wa_adr6-smtp_srch = help_smtp.
    *\    ENDIF.
    *\    returncode = worst_error.
    \550i-
    *\  ELSE.
    *\    TRANSLATE normal TO UPPER CASE.                      "#EC TRANSLANG
    *\    p_wa_adr6-smtp_srch = normal-address.
    \    p_wa_adr6-smtp_addr = normal_w_umlaut-address.          "1280i
    *\  ENDIF.
    *}   DELETE
    *{   INSERT         PDCK902820                                        2
    Code inserted
        p_wa_adr6-smtp_srch = unstruct-address.
        p_wa_adr6-smtp_addr = unstruct-address.

  • Email address validation

    Hi,
    We recently deployed a basic questionnaire being used by military personnel.  We turned on the "Submission Receipts" option so that respondents could receive a copy of their submission.  We have discovered that due to the elaborate format of some military email addresses (First.Middle.Last.role(civ, ctr, mil)@whatever.mil), the system was not allowing the results to be recorded because it deemed the email address invalid.  Can someone verify whether or not this is indeed an issue in the FormsCentral processing?
    Thanks!

    Previously, we had the "Submissions  Receipts" option turned on and used an email address field.  We got reports that people with .mil email addresses were getting errors that the email address was invalid and subsequently the data did not seem to be captured.  So, we turned off the option and changed the "Email" field to a text field so that it didn't perform the validation check.  Since that field is now optional, it isn't a big issue but might be of some use in the future.
    This morning I went to share access to the form to an employee who works for a company with a .us email address.  When I typed in her email address, the interface said it was an invalid email address.  I just tried again and this time it worked fine so if you fixed it, thanks for the quick turnaround.
    If you require more detailed information or a link to the form, please email me directly.  Thanks!

  • How can I copy an email address from the form results while online?

    Our form contains a field where the users submitted their email address.  But I am not able to mouse over this data in the "View Responses" tab, and copy the email address by selecting the email address and Ctrl C, and neither can I right-click this data field and copy it.
    Our organization just switched to Microsoft Office 365, and "mailto" links on web pages can no longer be clicked to launch a native desktop email client program.  So the users tasked with responding to forms submitted via Formscentral now have a much harder workflow.  They are compelled to download the data as a spreadsheet, just to be able to cut and paste an email address into their reply email.
    I suggest and request that the Flash-based "View Responses" tab be modified to allow email addresses to be selectable and able to be  copied to the "clip board".  This would allow users who can't execute a clickable mailto link to copy and paste the email address from Formscentral into a new email.  Many organizations like mine are moving away from native client-based email programs like Outlook to save money,  in favor of cloud based SAS web-based email like Office 365.
    Is there some other way to enable mailto links where no client email program is installed on the users PC?
    Thanks,
    -Dave Bartholomew

    While I am still looking for a better answer, I've discovered a way to cut and paste email addresses from the FormsCentral "View Responses" dashboard.  I wrote up the instructions to help our users and thought I'd share them in this forum as well.
    But it would be nice if there was a simpler solution...  Can anyone offer a better way?
    -Dave B
    ) Right-click on the email address
    ) Select “Filter by: …”  Doing this will change the view to show only entries that were sent from the selected email address.
    ) And it will display the Filter in the header of the form.
    ) Left-click on the email address displayed in the filtered results, in the header of the form.
    ) A new sub-form will appear, and the email address can be cut and pasted from this new sub-form.  Highlight the email address and hit “Ctrl C”, or right-click and select copy.
    ) Now you can paste the email address into a new email in Office 365. (Ctrl V) or right-click and select “Paste”
    ) Click the “Clear” button and then “OK” to exit the filtered view of the data.

  • Email address in a form

    I have a form where people enter their e-mail address into a
    required field. What i am trying to do is when the user clicks
    submit and it sends the form to the designated email that the email
    address that was entered in the form field is put as the sender. Is
    this possible and how do I get it to do that?

    What method are you using to process the form's data?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "TrickyTiger" <[email protected]> wrote in
    message
    news:elp0e6$pmp$[email protected]..
    >I have a form where people enter their e-mail address
    into a required
    >field.
    > What i am trying to do is when the user clicks submit
    and it sends the
    > form to
    > the designated email that the email address that was
    entered in the form
    > field
    > is put as the sender. Is this possible and how do I get
    it to do that?
    >

  • Where does Acrobat come up with the default email address for a form?

    We're testing a form to be distributed for electronic signatures by a variety of clients. I created the original form from a Word document, then added signature fields. I then submitted the form to others, but when they add their signatures and click "Submit" to have the form resent it comes up with another co-worker's name and email address. There's no way to change those fields, and I can't figure out where it is getting the other name and email address. The original document has my name, as does the copy of Acrobat I'm using and the computer that i use to send it. Does Acrobat go to some default manager name somewhere out their in the cloud? Help!

    Have you checked the actions of the Submit button? (I know you were the form's creator, but maybe someone helped or the button was borrowed from another pdf?)
    If you haven't checked already:
    Right click on the Submit button, and click Properties.
    On the Action tab, see if there are actions listed (like in the example jpg below)
    Select the action, then click Edit and see if an email address is there for you to edit.

  • Email address changes when form is distributed.

    I recently helped a friend with a fill form for his clients. I added a "submit by email" button athte bottom and coded it with his email address.  I did the ditribution and send them hte form and responce file.  Much to out dismay te responces tot he form were going to my email and not his.  I went back into the orginalt file and saw it was his email, but when we opened the distribted form it had been changed to mine.  I've tried several times to fix it but it keeps changing.  What do we do?
    Tim

    Hello there,
    I'm sorry to hear that you've been having trouble; this sounds like an Acrobat issue (not an Acrobat.com issue), so it's not likely to get a satisfactory answer from this forum, which is for questions pertaining to Acrobat.com (www.acrobat.com). I recommend re-posting it to the forums at the Acrobat Users Community:
    http://www.acrobatusers.com/forums
    You'll have more of a chance of getting a comprehensive answer from the moderators there. Best of luck, and sorry not to be able to offer more specific advice.
    Kind regards,
    Rebecca

  • Problem in uploading xls/csv file with Email address through oracle forms

    Dear all,
    I've created an interface to upload data from xls
    and csv files to database tables.
    I'm sucessed in this. Now i'm facing an issue.
    If the xls/csv file having Email address,the
    upload activity is not working..junk characters is
    getting stored.
    I came to know that, xls .csv file having email
    address with hiperlink. so this may cause the
    issue (just guessing)..
    we can't restrict users to upload email without
    hiperlink.. so what is the alternative to do
    this..
    Email address
    [email protected]
    [email protected]
    [email protected]
    etc...

    Can you give some more information:
    What versions of Forms, database, Java, browser are you using?
    How are you uploading data? Please show us your code.
    What do you mean by "email with a hyperlink"?

Maybe you are looking for

  • The document "fine_name" couldn't be opened

    Has anyone had the pleasure of working on a pages file, printing it, saving it, closing it and when you go back to open it, it says "The document "fine_name" couldn't be opened" It is a .page file format, I have tried opening it up in text edit and c

  • Configuring the Receiver Mail Adapter

    Hi, I have to send data in a flat file via email using XI. I have configured a File adapter to read the XML file from sender. I have configured receiver mail adapter at the other end. I get success message in the SMXB_MONI transaction. But no mail is

  • Auto-print oracle report

    hi all... i created a batch file to auto-print an oracle report upon executing the batch file. the report is successfully printed upon clicking on the batch file or by executing it in ms-dos environment on the server but it is not printed out when i

  • Users looged in whole day

    Hello, I am trying to know how many users logged in server and logged off from the server in a day. And how much time they were in the server. Is there any table or report from where i can fetch this report. Best Regards, Prashant Dubey

  • Tags inside Taglibs

    Hi, I created a tablib with the following tags: <tl:generateMenu/> <tl:generateHeader> and now I want to make another tag <tl:mainPage> that prints: out.print("<html><head><title>"+title+"</title></head><body>"); out.print("<table><tbody><tr>"); out.