Re: how best to obfuscate email address in applet

From: KC Wong (my_at_privacy.net)
Date: 01/11/05


Date: Tue, 11 Jan 2005 18:22:44 +0800


> My ISP does not provide CGI or java servlets to residential users and I
> will not use a mailto: url in my webpages. I still need a way for folks
> to email me through a contact screen on my website.
>
> I quickly built a contact form applet using my java IDE but am clueless
> about how to get the applet to SMTP mail the form data to me. It seems
> that the java security manager won't allow java applets to make network
> connections in untrusted mode and it is not realistic to expect folks to
> add my applet to their trusted list. Is there any way that I can get an
> untrusted applet to SMTP mail its data? I doubt that the generic PC
> where my applet is executed will have a local SMTP server running on it.
>
> What are workarounds, given that I can only post HTML/Javascript and
> JAVA applets on my website?

You could use your Java applet to open a mailto:url in the client browser.

But note this: Your email address will then be inside the Java applet. It
can be easily decompiled, so they'll get your email if they want to. Not
even a signed Java applet sending to your SMTP sever can help... they can
just install a packet sniffer and got all data sent.

I'd say the solution is to apply for an additional email address and install
a good spam filter in it so your mail email account can be saved from spam,
and edit the mailto url so that the subject line contains certain phrases
your filter will allow it through. Change it if someone tries to spam you
with that phrase.



Relevant Pages

  • Re: AICC Appendix B (SCORM) Implementation Suggestions
    ... > good solid AICC Appendix B implementation? ... > I build a Java applet and use only that for the API? ... You still need some JavaScript to implement the actual API ...
    (comp.lang.java.help)
  • Re: general Java publishing
    ... a java applet as a delivery medium for published material over which the ... the old fallback of the screenshot for copying images, ...
    (comp.sys.mac.programmer.help)
  • Re: Convert long filenames between Classic and back?
    ... I care about is a local file name to a file that my Java applet (living ... same APIs to un-abbreviate it. ...
    (comp.sys.mac.programmer.help)
  • Re: 403 Access Forbidden
    ... The Java exception doesn't have a substatus code which is why it took so ... It is the "Too many users" exception - I ... For a Java applet to use a .NET web service, all that needs to be done is ... > As far as i know IE uses only two connections because that is what the RFC ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: 403 Access Forbidden
    ... The Java exception doesn't have a substatus code which is why it took so ... It is the "Too many users" exception - I ... For a Java applet to use a .NET web service, all that needs to be done is ... > As far as i know IE uses only two connections because that is what the RFC ...
    (microsoft.public.inetserver.iis)