I have a new drupal installation in /mydrupal/ subdirectory,
say http://www.example.com/mydrupal
and I have a folder /oldpages/ which I put inside /mydrupal/ folder
how can i password-protect everything inside /oldpages/ based on
the list of username of drupal database? (hopefully it can be dynamic)
so everytime a new user creates an account then they can directly
login to /oldpages/
the reason i need this is because
I want to prevent people to type http://www.example.com/mydrupal/oldpages/
directly as they can do it at the moment.

please advice friends.

thanks,
tlie

Comments

laszlo.laszlo’s picture

If you use apache web server, it has got a auth_mysql module. Whit this module you can use .htaccess to protect your oldpages folder.

thomas.lie’s picture

I got what I need.
thanks laszlo & styro
Before I consulted the forum, I spent more than 6 hours
looking for solution & example.
I forgot that there's a drupal forum
got sleepy and so i tried my luck shoot the question
when i woke up you friends gave me answer in just 4 minutes.
it's like magic =)
that's why i love drupal and the forum!

thanks a lot,
tlie

thieun3’s picture

This is exactly what I need, but on the IIS. I'd very much appreciate if anyone help me this.

Thanks