Hello,
is there a PHP way to protect files, jpegs, pdf`s etc.. without htaccess because i already use a custom login/member management.
So the files are login-protected even when they know the exact link to the file.
Thanks!
Protecting files without htaccess
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
so for example:
I have a gallery that loads images from the /gallery/ folder.
I place a htaccess in the /gallery/ folder to prevent direct access.
So people will need to be in the gallery system to view the pictures.
Will that work? or will the htaccess prevent the script from loading pictures.
(gallery/picture as example, could be something else too)
I have a gallery that loads images from the /gallery/ folder.
I place a htaccess in the /gallery/ folder to prevent direct access.
So people will need to be in the gallery system to view the pictures.
Will that work? or will the htaccess prevent the script from loading pictures.
(gallery/picture as example, could be something else too)