Hiding my app on my website

早过忘川 提交于 2019-12-24 13:23:31

问题


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?


回答1:


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




回答2:


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...



来源:https://stackoverflow.com/questions/32389533/hiding-my-app-on-my-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!