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
Download page
Re: Download page
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...
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Download page
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
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.

