Protected Directory - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Site and Server Administration » Protected Directory


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 08-01-2006   #1 (permalink)
justin
Junior Member
 
Join Date: Jun 2006
Age: 33
Posts: 27
Default Protected Directory

Hello,

Problem:

I need to have password protection on a directory and all of its content and subfolders. Essentially it's a "client area" of a website. In this directory will contain regular php script files to display pages, but their will also be links to PDF files, and regular html websites for beta-testing, etc.

I need to be able to say http://www.site.com/client/client1/* is locked down to only those client1 users specified in a mysql database. For PHP scripts this should be fairly simple in that you can write code at the beginning to check for this. But links to PDF files, as well as running HTML files in these folders can't be handled by PHP.

Is there some sort of way in Apache to specify for a directory that a certain PHP script will execute PRIOR to the requested URL being allowed? This way, in this "script", I could put the authorization code in the script file.

Please Note: I cannot use .htaccess/htpasswd/htgroup files for this because I cannot have the standard little authentication box "pop" up. It needs to be done through PHP forms.

Thanks
justin
justin is offline   Reply With Quote


Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making folder password protected Ankita PHP 2 10-12-2006 02:01 AM
kickstarting a directory gabriel All Other SE's & Directories 0 08-01-2006 01:22 PM
Stop a password-protected listener using a script? cameron Site and Server Administration 0 07-29-2006 03:38 PM
Board Directory Jarett. Forum Management 1 04-13-2006 03:53 PM


footer left
All times are GMT. The time now is 01:59 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Debt Consolidation | Bad Credit Mortgages | Conflict Resolution Role-play | Loans | Bad Credit Mortgages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49