Forum Moderators: phranque

Message Too Old, No Replies

.htaccess - allow java, disallow downloads .class files

htaccess, java, disallow, .class

         

Conquester7773

2:51 am on Apr 20, 2004 (gmt 0)

10+ Year Member



I'd like to disallow everything (yes including browsers that don't provide headers) except for an <applet> from getting .class file's.

So that a user cannot download them.

I only want to allow <applet> inside of a browser to get it.

Can I do that?

jdMorgan

3:12 am on Apr 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Conquester7773,

Welcome to WebmasterWorld [webmasterworld.com]!

> So that a user cannot download them.
> I only want to allow <applet> inside of a browser to get it.

No, I'm afraid it's the same thing. In either case, the request comes from the browser.

You might consider an alternative approach, such as making the applet 'die' after a couple of days, or using a 'loader' applet which destroys itself immediately after finishing to load and start the real applet. I'm not a java expert, so this is a general suggestion, and the quoted words above have no 'official' meaning in java-speak.

Jim

Conquester7773

4:21 am on Apr 20, 2004 (gmt 0)

10+ Year Member



Thanks for the support.

That stinks, are you sure?

I have custom php errors, and if I create an <applet> and request a .class that doesn't exist, it say's the browser is Java1.0.2 or whatever bla bla....

I can't get that same information?...

Oh well, thanks!