tpoynton
8-15-07, 09:14 PM
Greetings...
I'm trying to prevent direct access to some files, so I've got htaccess set up to block that, which means I need to get the files to the user via script...
SO, I've got my html page in a directory that parses html through the php processor. Is there an easy way to recode the html link to a link that, when clicked, the file is downloaded via PHP (perhaps through link, or symlink)?
The page before this is a form that must be filled out, which sets a session variable(?) that must be there to view the page. That works great; perhaps something can be added to that?
or, is there another way to do this? I've read that htaccess anti-leech methods dont work, or cause more problems than they solve...
THANKS!
I'm trying to prevent direct access to some files, so I've got htaccess set up to block that, which means I need to get the files to the user via script...
SO, I've got my html page in a directory that parses html through the php processor. Is there an easy way to recode the html link to a link that, when clicked, the file is downloaded via PHP (perhaps through link, or symlink)?
The page before this is a form that must be filled out, which sets a session variable(?) that must be there to view the page. That works great; perhaps something can be added to that?
or, is there another way to do this? I've read that htaccess anti-leech methods dont work, or cause more problems than they solve...
THANKS!