[thelist] Java question

David at softv.net David at softv.net
Wed Feb 6 12:51:00 CST 2002


URL doc = this.getDocumentBase();
// turn it into a string
String path = doc.toString();
// now compare the doc to your URL, if they don't match, kill the applet
if (doc.equals("yourURL"))
{
 // you're ok...
}

<%
David Mitchell
Web/Software Developer
david at sofTV.net
sofTV.net
www.sofTV.net
613.729.6400 x268
%>

The doer alone learneth.
- Friedrich Nietzsche


-----Original Message-----
From: Tom Busch [mailto:tom at clickvisuals.com]
Sent: Wednesday, February 06, 2002 1:51 PM
To: thelist at lists.evolt.org
Subject: [thelist] Java question


Hello, I have a Java applet written and I want to make sure that no one
else can put the code on their site and use my applet.  I can't seem to
find the code that lets the applet check the domain of the site that is
calling it so it can check to see if it is my domain or not. Any help is
greatly appreciated.
Tom

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list