Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to find a solution to allow a file download (It's an .exe file for an app update) only if the request comes from a desktop application and to block requests if they come from a web browser.

How to manage that? Thank you. Nina

share|improve this question
What do you mean by "local"? – Lèse majesté Jan 10 '13 at 23:39
up vote 1 down vote accepted

There's a few methods that you could use:

1) Download via the website but require a API Key, basically you could build a page in php that requires a key and the desktop applications contain that key.

2) You could host the file on FTP with username and password, and only have the applications with the username and password - this is by far the easiest way.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.