Results 1 to 11 of 11

Thread: Where to put files on a webserver?

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Where to put files on a webserver?

    I know how to put files and stuff on the webserver, but I don't know where to put files that need to be accessed(as in showed) but not downloadable, or how to do it. If you can help me, please post. If you don't understand what I've asked, please question me!

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Location
    Lexington, SC
    Posts
    586

    Re: Where to put files on a webserver?

    Hmm any files that can be shown, can be downloaded if the person viewing them wants to.... (the viewer is downloading them temporarily to view them)

    Unless you mean you want a directory / file list to see a list of files but not be able to download anything from the list? That might could be accomplished but would be in your FTP settings, not in where you put the files on the server.

    Also some servers are automatically set up with a private folder with the permissions set to disallow outside access...

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Where to put files on a webserver?

    If you are just wanting to do FTP downloading from your site then you need to have your files in the "C:\Inetpub\ftproot" directory for starters. Do you have a website or IIS installed and setup?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Where to put files on a webserver?

    Let me explain a little better. I have the website set up(as of right now).. It's pretty bare because I just got the hosting package the other day. This is what I want:

    I want to display a java applet, but I DON'T want the user to be able to download the class file.
    See, all the they would have to do is go up to where they enter a url and change this:

    applet.html

    to this:

    applet.class

    and they can download the program that way. I CAN'T have that, but I don't know of anyway to get around it.

    Thanks for the replies...All help is greatly appreciated.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Where to put files on a webserver?

    Oh, I hate it when that happens. You write some cool code and if you place it on your sites directory, anywhere, they can DL it like that.

    You might want to post a link to this thread in the Java Forum. They may have the solution there. Probably NoteMe since he knows allot of Java.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Where to put files on a webserver?

    Thanks! I'll do exactly that.

  7. #7
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: Where to put files on a webserver?

    The binary file still has to be decompiled after it's downloaded. Why not just run the code through a Obfuscator?

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Where to put files on a webserver?

    Quote Originally Posted by Dilenger4
    The binary file still has to be decompiled after it's downloaded. Why not just run the code through a Obfuscator?

    Binary? When did you start to compile your appletts to binary.....

    Well, I would guess Dilengers method would probably be one of the best. yGuard is a free obfuscator. Never tried it before. Since I don't care if my code get stolen anyway... But you need Ant though. But I guess you can download that. Or find an other obfuscator.

    http://www.yworks.com/en/products_yguard_about.htm


    To prevent your code to be downloaded (if there is a faw) I guess you have to set some settings in your Apache config, or myabe a .htaccess trick is possible, not sure. But isn't the applett downloaded to your temp folder anyway? In the browser I mean?



    - ØØ -

  9. #9

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Where to put files on a webserver?

    It is downloaded to the temp folder...I was thinking that decompilation is just something I'll have to deal with, but I don't think their will be that many people that's desperate. Here's what I have in mind:

    the applet class has a method getDocumentBase() that returns where the applet was run from. In my code, I could test to make sure it's run from MY website, and if not, the rest of the code won't run. Now that won't prevent decompilation, but it's definately a step.

  10. #10
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: Where to put files on a webserver?

    Posted by NoteMe

    Binary? When did you start to compile your appletts to binary.....
    Sorry i ment Byte Code.

    System_Error, that sounds like a good idea. Check out Smokescreen or RetroGuard which are pretty good a java obfuscators. I also had a friend use Jshrink a while back and he said it was pretty good.

  11. #11

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Where to put files on a webserver?

    Thanks guys. I don't know if I want to run it through an obfuscratcher. It just seems to hard. Can they still get the source somehow after running it through the ob. thing?

Posting Permissions

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



Click Here to Expand Forum to Full Width