I'd like to have an authenticated download directory for manuals, special pricing lists etc. I don't want a guest to be able to download these files (mostly pdf's), only authenticated users. If a visitor isn't authenticated, I'd like them to be redirected to a login screen.
Can someone forward a link to another post that explains the steps to accomplish this?
We're on Ablecommerce 7.03. Thanks!
Secure Download How-to
Re: Secure Download How-to
First you need to create a new page showing your desired downloads. Then you can make it require login from customer. Read following thread about how to make a page require login viewtopic.php?f=42&t=10135
- airplaneguy
- Ensign (ENS)
- Posts: 5
- Joined: Thu Aug 27, 2009 2:52 pm
Re: Secure Download How-to
Thank you for your help (and your patience!)
I now have a new page that requires a login to view. I've created a link to the .pdf on that page which essentially makes the file secure, but if I copy the link to the .pdf and copy it into a new browser, I can open the file without being logged in.
We've had scenarios in the past where we've created private price sheets and the path was "shared" and the wrong people saw the price sheet. We'd like to protect the file(s).
I hope that makes sense. Can anyone help by forwarding a link to a how-to?
Thank you!
I now have a new page that requires a login to view. I've created a link to the .pdf on that page which essentially makes the file secure, but if I copy the link to the .pdf and copy it into a new browser, I can open the file without being logged in.
We've had scenarios in the past where we've created private price sheets and the path was "shared" and the wrong people saw the price sheet. We'd like to protect the file(s).
I hope that makes sense. Can anyone help by forwarding a link to a how-to?
Thank you!
Re: Secure Download How-to
I think the reason is PDF is not an ASP.NET file, so the request sent directly for PDF file is served through IIS it self without considering the authorization settings. The solution to this is to create the your PDF resources some where under Website/App_Data folder. Then put some code in your page that provides the link to manual document to provide the ability to load and download file from App_Data.
- airplaneguy
- Ensign (ENS)
- Posts: 5
- Joined: Thu Aug 27, 2009 2:52 pm
Re: Secure Download How-to
Thanks mazhar,
I've placed my directories under App_Data and my link now resovles to "The Webpage cannot be found".
Is there an addition required to the web.config file?
Surely I'm not the first ablecommerce user to do this. And I don't have the code experience to know exactly what to do.
My test item is at http://www.volutone.com/YAMAHA-RX-A700B ... P6869.aspx
The extended description has the Brochure link, if this helps anyone help me.
Thank you for any time you can send my way.
I've placed my directories under App_Data and my link now resovles to "The Webpage cannot be found".
Is there an addition required to the web.config file?
Surely I'm not the first ablecommerce user to do this. And I don't have the code experience to know exactly what to do.
My test item is at http://www.volutone.com/YAMAHA-RX-A700B ... P6869.aspx
The extended description has the Brochure link, if this helps anyone help me.
Thank you for any time you can send my way.