Download page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
afri-can

Download page

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Download page

Post 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...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Download page

Post 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.
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.
Locked

Return to “CMSMS Core”