.htaccess - Deny Access to directories from unauthorized users -


I am not being paid for this and I want to know the fastest way to do the following. A former customer has a page that only members can access. This page links to multiple galleries, in which it only wants access to members. The galleries are not protected by any type of authentication.

I think the fastest way to do this is to create an .htaccess file which allows people to view the site when only a certain referrer comes from it. Will this work?

My current thinking is that I can use a php script to deploy the .htaccess file in every single gallery directory. (At this time there are about 100.)

I found this link which could happen to me after that but honestly I did not really get it. Is my thinking sound? Can anyone link me to a tutorial that does this or show me how it is done.

As always, a huge thanks for any help.

> Jason


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -