Results 1 to 2 of 2

Thread: download code

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    6

    download code

    I've got an request :

    one page (several files) with black background and white color font . As in the image , all should be in the center of the page.

    5 (or with generated code : 6 ) lines (color : white , background : black) everything is seen , (not orange things)

    first line : Requested file : 12345678912345_7.exe (always stays the same)
    second line : Download code : (and box to fill in)
    third line : Generate key : (centered)
    forth line : Admins code : (and box to fill in )
    fith line: Download file ! / generate code ! (2 buttons )
    (sixth line : Generated key ( and box with 17 symbols ) directly underneath the 2 buttons )


    When the admin clicks generate code : there should be a code (17 symbols)generated into a file and saved .
    That code stays active untill somebody uses it .So if the admin clicks on the button if the code isn't used yet , this should also be saved into the file . Also untill somebody uses this .

    And I don't want that somebody could download the file simply by putting the good name into the browser.
    thats why I tought Java , but i don't know how to work it .

    thanks

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

    Re: download code

    Why not just create a members section with a login and password. Then use the session object to create a dynamic temporary url for the downloading or something along those lines?

    I dont know Java but there are many ways to prevent access to a download url other then what you are attempting.
    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

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