A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Can I hide my email address

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    3

    Can I hide my email address

    I would like to hide my email ( mailto: ) address used in the xml file. Below is the typical format I currently use. (please note I used [at] instead of @ in the example below)

    mailto:me[at]addr.com,you[at]another.com?cc=someone[at]else.com&bcc=somebody[at]differnent.com&subject=test&body=type+your&body=me ssage+here

    • It would send an email to "me" and "you"
    • It would cc "someone"
    • It would bcc "somebody"
    • Subject contains "test"
    • Body would read:

    type your
    message here

    My concern is that harvesters will pick up the email addresses using this method. I do have a Javascript solution but can't get it to work in the XML file so I assume javascript is not supported in XML.

    <script type="text/javascript">

    /*<![CDATA[*/

    <!-- Encrypted version of: info [at] ************.*** //-->

    var emailriddlerarray=[105,110,102,111,64,118,101,105,110,99,101,110,116, 101,114,110,104,46,99,111,109]
    var encryptedemail_id60='' //variable to contain encrypted email
    for (var i=0; i<emailriddlerarray.length; i++)
    encryptedemail_id60+=String.fromCharCode(emailridd lerarray[i])

    document.write('<a href="mailto:'+encryptedemail_id60+'">E-mail Us</a>')

    /*]]>*/
    </script>

    Is there a solution for this?

    Thanks for the help.

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    [QUOTE]
    My concern is that harvesters will pick up the email addresses using this method. I do have a Javascript solution but can't get it to work in the XML file so I assume javascript is not supported in XML.
    [QUOTE]

    Ever heard of ajax? I'm not real familiar with it but maybe a solution there.
    [SIGPIC][/SIGPIC]

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    3
    Yes I've heard of Ajax - and used it - but my SWF file needs to reference an XML for content and the link for the mailto address. Can the XML file reference the Ajax script for the mailto address?

    I found out that I could make it work but I would need to use php or asp to output the XML and that way I can use the javascript. XML alone is not allowed to have javascripts in it. But I don't know how to go about making php output the XML - yet...

    Still, one would think that there would be a way to reference a hidden email address via XML, but maybe not.

    I will prevail!

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    can you make use of this method -
    PHP Code:
    var arr = [];
    var 
    xmlmail "";

    _xml = new XML();
    _xml.ignoreWhite true;
    _xml.load("mail.xml");

    _xml.onLoad = function(){
    mailNode this.firstChild.childNodes[0].childNodes.toString();
    arr mailNode.split(",");
    for (var 
    i=0i<arr.lengthi++){
    xmlmail+=String.fromCharCode(arr[i]);
    }
    trace(xmlmail); // info[at]veincenternh[dot]com
    // note I used [at] and [dot]  instead of @ and . in this example to hide the mail address
    }; 
    -- mail.xml --

    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <mail>105,110,102,111,64,118,101,105,110,99,101,11 0,116, 101,114,110,104,46,99,111,109</mail>
    </root>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center