Forum Moderators: phranque
I'm somewhat of an Apache newbie. I'm trying to have some files (mp3, wmv, etc) on one server that can only be accessed by my other server. Specifically, I'm trying to embed the files in some HTML code and be able to click a download link from the page to be able to grab the file. I have a Directory directive set up with an Allow From, but as I understand it the Allow From checks the end user's IP address, not the server's IP. Is there a way to only allow access to a certain directory from my server's IP?
Thanks in advance.
Is there a way to only allow access to a certain directory from my server's IP?
...doesn't mean much (for precisely the same reason). The server isn't making a request of the embedded object, the client is. Now, when a request is made for an image (or movie, or what have you), the Referer header is (generally) sent by the browser to inform the server what page contained the link just clicked. Armed with this, one can create a mod_rewrite rule which will do what you want. The forum archives have copious amounts of information on this; search for 'mod_rewrite' and 'referer'.
Hope this helps.