Forum Moderators: phranque
Thanks
i would suggest you use an ftp link to the file instead of an http link - this should force a download whereas an http link will almost certainly try to run the .exe file. your server may need to be set to allow anonymous ftp. the link will be of the form <a href="ftp://yourdomain/filename.exe">
if an ftp log in is required, you will need to provide the log in details. the link will be of the form <a href="ftp://ftpusername:ftppassword@yourdomain/filename.exe">. of course, this creates a little security issue ...
a better option might be to save the file online as a .zip that people can download and open with winzip. provide a link for them to download winzip if they haven't got it. you might also like to make the unzipped file available for those who can't be bothered to install winzip.
you may find your web host is telling you that your server does not allow .exe files to run as executables rather than does not allow hosting of .exe files for download.
Thanks for all the info. My problem is that when I try to load the EXE onto my web host's server, I get an error message of "file type not allowed" -- so it's not a question of downloading the file from or running the file on the server.
See, my site used to be a free Geocites site, and I upgraded it to Geocities "Pro" when it went beyond the monthly data transfer allowed in the free service. But it is still Geocities, which in many ways is a sort of "training wheels" webhost.
In the future I will probably change hosting services, but for now I still get a lot of hits from my old geocites address in addition to hits to my new URL -- as long as the site is hosted by Geocites both addresses resolve to the same URL.
AddType application/octet-stream foo