Hiding Download Links

8 posts by 4 authors in: Forums > CMS Builder
Last Post: May 19, 2010   (RSS)

By northernpenguin - May 12, 2010

Hi everyone:

One of the websites I'm working on allows users to download documents. However, I do not want them to know where the files are located, as they are purchasing them.

Is there anyway that you may aware of to "hide" the URI? At present, if I move my mouse over the URI for the file, I can see the complete path at the bottom of my browser.

Thanx!
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [gkornbluth] Hiding Download Links

By northernpenguin - May 14, 2010

Hi Jerry

I was trying to avoid using Linkokurl, but oh well!

Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Hiding Download Links

By gkornbluth - May 14, 2010

Hi Ragi,

They really offer a lot of detail and sophistication for the minimal cost. And it's surprisingly easy to set up.

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [northernpenguin] Hiding Download Links

By Kenny - May 14, 2010


I have used this before (file attached). Try it out and see if it works for what you are wanting it to do.

Change the settings in the script to match your site.

You just have to refer to this file like this:

http://www.yourwebsite.com/download.php?f=<?php echo $upload['urlPath'] ?>

Make sure you set write permissions on the folder where downloads log is saved if you turned downloads log feature on.

I haven't used it in a while, so I hope I'm not missing anything.

Let me know if it works for you

Kenny
Attachments:

download.php 6K

Re: [sagentic] Hiding Download Links

By northernpenguin - May 14, 2010 - edited: May 14, 2010

Kenny: Your file works, however the URI is still displayed at the bottom of the browser, so anyone can see the download directory. I need to hide the URI.

Ragi

P.S. You can try it yourself if you wish. Go to http://www.ipac.ca/casestudies. Search for a casestudy, add it to the cart and purchase. Use 4444444444444444 for the credit card (Test mode).
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Hiding Download Links

By Jason - May 19, 2010

Hi,

One thing you could try would be to modify downloads.php file so you only pass a record number of the file you want to download:
example:
http://www.yourwebsite.com/download.php?f=*Record Number*

Then, in download.php, you can select the record that matches that number and assign it's path to the "f" variable:
example:
$_GET['f']=record['urlPath'];

The rest of the script should work on it's own.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Hiding Download Links

By northernpenguin - May 19, 2010

Thanx Jason

Works great!
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke