Hi how can i do this ? is it possible to have page.html and file.exe: file.exe can be downloaded if clicked from page.html, but if you try to download directly the .exe it redirects you to page.html ?
Simplest way? Test the referer (no, that's not misspelled). See http://www.htaccess-guide.com/hot-link-prevention-techniques/. cheers, gary
Don't serve it as link, make it a response of some server method that will check the client url first.
i believe you want to stop a direct download ie yoursite.com/download/product.exe as appossed to yoursite.com/download/page.html. To do this you will need a download manger script to protect the download, these mask the location of the download or protect it by requiring them to join your download site. check out http://www.hotscripts.com/category/scripts/php/scripts-programs/file-manipulation/download-systems/ for some good free scripts that will do this job.