Guest Posted April 20, 2007 Posted April 20, 2007 I'd like to allow any visitor to my site downloading a pdf file. I have provided a link: <a href="../files/download/document.pdf"><b>Instructions Download</b></a> The link works fine but when the visitor clicks on it an "Authorization required" window appears. Any pointers at how can this be avoided? Many thanks in advance....
oschellas Posted April 20, 2007 Posted April 20, 2007 Backup and delete the htaccess file in the download folder.
Jack_mcs Posted April 20, 2007 Posted April 20, 2007 I'd like to allow any visitor to my site downloading a pdf file. I have provided a link: <a href="../files/download/document.pdf"><b>Instructions Download</b></a> The link works fine but when the visitor clicks on it an "Authorization required" window appears. Any pointers at how can this be avoided? Many thanks in advance.... If you are not going to offer paid downloads, do as suggested. Otherwise, create a different directory for free downloads and provide a link to it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
crash3903 Posted April 20, 2007 Posted April 20, 2007 Backup and delete the htaccess file in the download folder. Create a folder called whatever you like and put the file in there. Then link to that file in that folder and you will keep your protection on your downloads folder if you choose to sell downloads in the future EDIT: Beat me to it Jack :) Regards Mark A Reynolds
Guest Posted April 20, 2007 Posted April 20, 2007 Thanks a lot, that was it! One more question though... does it means any potential security hole? The htaccess file was there for something wasn't it? Anyway many thanks again, otsarri
crash3903 Posted April 20, 2007 Posted April 20, 2007 Thanks a lot, that was it! One more question though... does it means any potential security hole? The htaccess file was there for something wasn't it? Anyway many thanks again, otsarri see above Regards Mark A Reynolds
Guest Posted April 20, 2007 Posted April 20, 2007 Ok, I got it now!! I did not know that the download folder had this function, I understand now what the htaccess file does and how to provide a folder for free downloads. Thanks to everyone who took the time to answer the question. All the best, otsarri
Recommended Posts
Archived
This topic is now archived and is closed to further replies.