in Education by
I need to find a way to force Apache to ask users for credentials for each ressource they ask for under the root of my website. This is my .htaccess content at the moment: Dav On AuthType Basic AuthName "private" AuthBasicProvider external AuthExternal auth require valid-user (This will call a Php script defined by auth.) I want the user to authenticate again for each different ressource he might want to get, but keep the authentication alive when he successfully authenticate for a specific ressource. Maybe I miss something about how I'm supposed to do this in an "Apache logic", anyway, any help will be apreciated ! Thanks. Edit: I misunderstood the way Apache authentication worked. I supposed that when someone was authenticated, he didn't need to authenticate again for any ressource under the same directory, but that's not true. If my PHP script use the current URI of the file requested, I can return a different status code depending one the right for someone to access it or not, even if he was granted access to the root for example. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Annoying the user every time he access a different resource is...well...annoying. Rather use an ACL (Access Control List) that your php auth script checks and denies access if the user doesn't have the correct permissions.

Related questions

0 votes
    It's big problem to convert mod_rewrite rules to lighttpd format JavaScript questions and answers, JavaScript ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I have a server from AWS EC2 service running on Linux Ubuntu and I have installed Apache, PHP, and MySQL. I have ... How to fix this? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web ... find my Apache config. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    What Are Apache Tears?...
asked Aug 6, 2022 in Technology by Editorial Staff
0 votes
    what is apache tears colorado...
asked Aug 6, 2022 in Technology by Editorial Staff
0 votes
    So, I was trying to upload PHP files into Apache server, and whenever I browse the file I get 403 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    So, I was trying to upload PHP files into Apache server, and whenever I browse the file I get 403 ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I am trying to write a rule which says xyz.com/hotels_in_someplace will direct to xyz.com/test.php?place ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Inno Setup is a nice easy to use installer. It is rated high in this stackoverflow question. I have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 21, 2022 in Education by JackTerrance
0 votes
    How can I delete a file or a folder in Python? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I want to upload the file pdf to the folder but a file is not saved to a folder. I already read the ... .run(debug=True)``` Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Define: (i)copying file and folder (ii)moving file and folder Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    I am working on Automation Anywhere RPA platform to automate below process - 1. Login to a website using Username ... and Password). Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    What is the .vs folder used for exactly? It gets created at the base folder of my solution. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I am currently trying to access Jira REST with Jersey. The problem is that for our Jira a single ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
...