Results 1 to 3 of 3
  1. #1
    AXH
    AXH is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default hiding source file from users

    Hi
    Is there any way to make file (on server) inaccessible for users (through web browser, ftp etc.), while still readable for applet (on the same server, launched by the same users)?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,576
    Rep Power
    23

    Default

    My opinion:
    If the server is only HTTP, ie no servlets or cgi-bin code, then probably not. Even with some executing code on the server as above, it's a question of how to have the server code know its the applet doing the request vs a browser. You can make it difficult for the novice user to issue an HTTP get via the browser for a file by putting something in the applet's request as an identifier of the source of the request.
    Another simple trick would be to encode the files and have the applet decode them. This would keep out the casual browser user.

    What kind of server do you have?

  3. #3
    AXH
    AXH is offline Member
    Join Date
    Oct 2008
    Posts
    5
    Rep Power
    0

    Default

    apache2@ubuntu for testing, I don't know right now what server will be used later.
    My applet is accessing database (mysql on the same server), and I have no idea, how to connect to database without user knowing the database password :/

Similar Threads

  1. Super class and Subclass in same source file
    By makbar24 in forum New To Java
    Replies: 17
    Last Post: 09-10-2008, 01:24 PM
  2. Replies: 3
    Last Post: 08-08-2008, 02:53 AM
  3. Binaries and Source File
    By sumation in forum NetBeans
    Replies: 0
    Last Post: 04-03-2008, 07:14 PM
  4. Hiding parameters from URL
    By Saurabh321 in forum New To Java
    Replies: 0
    Last Post: 02-05-2008, 12:43 PM
  5. Hiding a method or function using PHP file
    By Raj Singh in forum Eclipse
    Replies: 1
    Last Post: 08-09-2007, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •