CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006

    hiding e-mail addresses

    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?

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

    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

    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

    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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.