Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

accessing applet outside the wwwroot

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
At first i would like to apologize for my english.
I have put my applet outside wwwroot to a directory called APPLET to prevent hotlinking and now i'm having some accessing problems.

I have no idea how should i modify my codebase path. Could you please tell me what i am doing wrong? Everything was working perfectly fine when my applet was inside the wwwroot (my previusly codebase was APPLET/classes).

This is how now i am building my applet object:


 
Sheriff
Posts: 67399
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the applet isn't available as part of the web app, how is supposed to be downloaded to the client?

The browser has no access (thank goodness) to other folders such as /users/user_name/APPLET/classes. Could you imagine the security nightmare if it could?
 
Mike Kowalski
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohh i see.
I have an access to php scripts outside the wwwroot so i thought there is a way to get an access to java applet but i guess they are handle in different way. Is this is because they are client side?
Is there a different way to secure my applet to prevent hotlinking? My application is running on Apache HTTP Server.

Sorry for my newbie questions and thank you very much for your time.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTML will always be accessible if someone guesses the URL. If you want to require authenticated access you can set up HTTP Basic Authentication for that page, or require a login within the applet.
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic