English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello,

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 there 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.

Note: I cannot use .htaccess/htpasswd for this because I cannot have the htpasswd popup box, it needs to be a php form.

2006-07-28 08:19:24 · 2 answers · asked by clievers 4 in Computers & Internet Programming & Design

Any suggestion on how to do this mod-rewrite? I'm not finding any examples in Google. Thanks.

2006-07-28 09:09:48 · update #1

2 answers

you should be able to do a mod-rewrite related to that directory that just routes all requests through a validation script

2006-07-28 08:47:08 · answer #1 · answered by John J 6 · 0 0

Social safe practices isn't merely a pension fund or an IRA the position you save earnings an account. as an social gathering, in case you die previously hitting retirement age, you could't leave the money on your relatives. in fact, once you pay Social safe practices, you're paying a tax that is going to funding Social safe practices for modern beneficiaries. you're properly, even if, you'd be desiring to pay in for a particular variety of years (40 quarters) with a view to collect and that the quantity you assemble is depending off how a lot you paid through the years. Social safe practices isn't classically socialist because it is not any longer a everyday entitlement and considering that you could get better in case you pay better; even if, through the undeniable fact that is a mandatory retirement plan you'd be desiring to pay into even if you choose it or perhaps if you'll ever assemble, it is really economically regulatory and probably socialist merely in the broadest experience. In different words, it is not any longer only a strict re-distribution of wealth like welfare or Medicare. even if it is socialist, even if, would not somewhat count number. both you're for authorities interference in the economic equipment or you aren't any further. both you imagine persons ought to be able to verify the words of their own retirement plans or you do not. As a capitalist, i do not care if Social safe practices is socialist, communist or the different -ist. finally, what i recognize is that it is economically authoritarian, so I oppose it.

2016-11-26 21:06:25 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers