|
-
Apr 15th, 2009, 11:28 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] htaccess and forums
Hey guys,
I'm just wondering how it would be possible to restrict a directory on a server depending if a user is logged into a forum or not.
Basically the directory structure is this:
public_html/forum
public_html/ftp_area
The htaccess file will have to go into the public_html folder. Making sure the forum directory stays unlocked (So users can actually login, lol).
I want the ftp_area folder restricted if a user isn't logged into the forum software (phpBB if anyone's interested). I'm thinking that you'd have to check whether they are logged in by checking cookies. I could modify the boards to set another cookie that the script could check, or design something that checks the phpBB database. The only thing is that this script would have to run if they tried to access any file or sub-directory under and including "ftp_area".
I know enough of PHP to do this, but am a little lost when it comes to htaccess files.
Is this possible to do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|