Search code examples
information-hiding

Hiding my app on my website


Right now I have an application on my website that users can easily download from my website, is there a way to hide or make it really hard to be able to find my application, so people can't just add /files/App.exe into the end of my domain to get my app? What do you recommend?


Solution

  • Hiding your exe could be accomplished by

    1. Create a unique identifier (perhaps a GUID)
    2. Associate this with a file name for download and an expiration date (in a DB, perhaps)
    3. Create a page that takes the unique ID as a parameter
    4. Have this page check the DB for the unique id and ensure it hasn't passed the expiration date
    5. Send the file to the client, setting Content-Disposition header to attachment

    If you are using ASP.NET this example will help you