Page 1 of 1
Download page
Posted: Wed Aug 30, 2006 9:04 am
by afri-can
I need to create a page that has a form to fill in, once the form is submitted the customer will be directed to a protected page to download a file (pdf or zip), the file should be protected from downloading via direct url
Does anyone know how I can do this
Re: Download page
Posted: Thu Aug 31, 2006 3:08 pm
by jmcgin51
protecting the download page (not the file itself, but the page the link is on) with FrontEndUsers and CustomContent should work, but I haven't tried it...
Re: Download page
Posted: Thu Aug 31, 2006 3:14 pm
by calguy1000
Use CustomContent, or just smart to protect the page, maybe with frontendusers.... but there are other ways with just smarty logic.
Then you'll need a .htaccess file in the directory which will only allow access to that directory from the local host
something like this should work.... but YMMV
Code: Select all
IndexIgnore *
SetEnvIf Referer mydomain.com allowit
order deny,allow
deny from all
allow from env=allowit
allow from 192.168.10.