Folder security

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
webline
Forum Newbie
Posts: 3
Joined: Wed Jul 09, 2008 3:29 am

Folder security

Post by webline »

i have a website that i upload videos so i want to lock the folder of the video OR i make a php script in that mask the url of the folder..
Can any one help..??
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Folder security

Post by jaoudestudios »

If you want simple but secure security for a folder just use a .htaccess file.
webline
Forum Newbie
Posts: 3
Joined: Wed Jul 09, 2008 3:29 am

Re: Folder security

Post by webline »

jaoudestudios wrote:If you want simple but secure security for a folder just use a .htaccess file.
I use different ways from htaccess but the videos didnt start because the folder lock and for the script also..The video is for live streaming not downloading..
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Folder security

Post by jaoudestudios »

When someone goes to that directory and enters the correct username and password they will be able to stream the videos but not before.
webline
Forum Newbie
Posts: 3
Joined: Wed Jul 09, 2008 3:29 am

Re: Folder security

Post by webline »

jaoudestudios wrote:When someone goes to that directory and enters the correct username and password they will be able to stream the videos but not before.
You speak about only one password ?
Its a paid video and some free its a newspaper and the video is for the members. some they have to pay to see it and some other are free. So i cant put password because the video are for public..
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Folder security

Post by jaoudestudios »

Ah ok...yep in that case you will need to create your own secure system.

htaccess is not really feasible - it can have more than one username and password, but not ideal for this situation.
Post Reply