Info_Tech wrote:
Hello everyone, I'm looking for a code or a script that if someone clicks on a link to download a song they get a box that asks them to save/open that song... does anyone know how to do that? |
The dialog box to save/open is controlled by the client pc's settings. If they already set the file type default to "save" or they default to "open", the dialog won't be presented. The user has control over how they handle a particular file type, not you.
Info_Tech wrote:
P.S. I know they can right-click and save target as but the link i provide is masked by an image that is labled "download" this way I will prevent them from linking to my files from another site. |
I usually prevent hotlinking by either having the images/files in a data base or in a directory above the web root. The links themselves are to a script - e.g. downloads.asp?songnum=9999. The script checks http referrer and ip to make sure the request only comes from my site and from a particular page.
Google for hotlink asp for more techniques and sample code.
QUESTION: Just out of curiosity, why don't you want people linking to your images? They won't go to your site and see your adds, but it'll certainly be a boost to your page rank which in turn would drive traffic to your site.
Edited by dpyers - 10 June 2005 at 7:04am