Results 1 to 3 of 3

Thread: E-mail Protection Scripts Problem

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question E-mail Protection Scripts Problem

    Hello,

    I'm working on a Dreamweaver website. Need to protect my e-mail adresses from spam.

    I've found several scripts:

    <A onmouseover="email = new Array('i','n','f','o','@','h','a','n','d','e','l', 'g','a','t','e','.','c','o','m');this.href='mailto :';for(i=0;i<email.length;i++){this.href+=email[i]}" href="you@relays.osirusoft.com"><SCRIPT>text = new Array('i','n','f','o','@','h','a','n','d','e','l', 'g','a','t','e','.','c','o','m');for(i=0;i<text.le ngth;i++) {document.write(text[i])}</SCRIPT></A>

    or

    <script language="javascript"> function guard() {
    var p1, p2, p3, p4, p5, p6;
    p1 = '<a href="mai'
    p2 = 'info'
    p3 = '">'
    p1 += 'lto:'
    p2 += '@'
    p5 = '</a>'
    p6 = 'info@handelgate.com'
    p2 += 'handelgate.com'
    p4 = p6
    document.write(p1+p2+p3+p4+p5)
    }
    guard();
    </script>


    But when I paste them between the body tags it never appears.

    Should I move part of it to the head tags? How do I do that (if that is the problem)?

    Ive been trying to solve this problem for quite a long, now i think its because im using dreamweaver...

    Thank you

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    there are a couple of ways.

    • Add text at the end of the email and tell user to delete

    emailDELETETHISTEXT@address.com
    • replace the @ and/or . character(s)

    email (a) address (dot) com
    • Use server side language

    provides full security of email
    allows greater flexibility in the email sent
    only downside is you need php installed and accessible

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The server side (PHP, asp, mailform, third party utils, etc.) is always better for mail stuff because it allows folks without email clients to use it.

    That said, here's an encryptor for folks without PHP or other server side mail facilities:

    http://home.comcast.net/~ansiguy/emailen1.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •