Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Apache Authentication using a login form

Posted on 2008-10-27
3
327 Views
Last Modified: 2012-08-14
Hi,
A client has setup a website that has restricted zones based on apache authentication. The type where a browser login box pops up when a user tries to browse to a restricted page/directory.

Is it possible to set this up so it uses a Login form rather the the browser dialogue?
If so how?

Regards
Mitch
0
Comment
Question by:SM17CH
3 Comments
 
LVL 2

Author Comment

by:SM17CH
ID: 22818993
Ive found this: http://httpd.apache.org/docs/trunk/mod/mod_auth_form.html
Is it the best option?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 22825011
it's not that bad :)
But IIRC it's a server solution and your application has no or only limited access to the login data.
0
 
LVL 1

Assisted Solution

by:frandshansen
frandshansen earned 250 total points
ID: 22845028
Is the "apache authentication" made with .htaccess or with some webscript querying for the username/password using a browser dialogue?

If the first thing is the case, every user is shown the same content when they log in, and the only good way of making it different is coding some PHP script to take care of it.

If you are using the other way, well then it should be pretty easy to change the code to being a <form> instead of a browser dialogue.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NGINX/Apache redirect on 403 and 404 5 126
Does it make sense migrate a website to MIcrosoft Azure 4 59
Adjust the position 3 65
.php tree directory? 5 83
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question