xHTML hiding e-mail addresses
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: hiding e-mail addresses

  1. #1
    Join Date
    Feb 2006
    Posts
    157

    hiding e-mail addresses

    Hi,
    I need to put on web pages e-mail addresses that should be somehow made readable for user but not to application that scarpe the content of HTML sites. What is the best way for doing this?
    Thanks

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,871

    Re: hiding e-mail addresses

    Simply put...you cannot put e-mail in plain text and keep it from being harvested without the use of JavaScript. I tend to build mailing scripts right into my sites instead of visible e-mail addresses.

    You can put a hash in all your e-mails and have a script onload remove it. However, that would require that all users have JavaScript enabled in their browser. Now-a-days...that's very common...so not an issue as it used to be.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jun 2009
    Posts
    90

    Re: hiding e-mail addresses

    You could make an image of the text and embed that, or (not knowing how good the bad guys are at this!) obfuscate it somehow like this:

    administrator&#64;<!-- lorem ipsum-->mycompany.com

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    105

    Re: hiding e-mail addresses

    Use & # 0 0 6 4 ; (without the spaces) instead of @

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center