Hiding my app on my website

2019-08-10 01:57发布

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?

2条回答
Bombasti
2楼-- · 2019-08-10 02:30

If u are using asp.net create a httphandler and map it in your web.config to the path of app.exe.. and just do response.write("get out") and log the details of the request.....equivalents are available on all popular platforms...

查看更多
Melony?
3楼-- · 2019-08-10 02:34

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

查看更多
登录 后发表回答