Solved

..htaccess and change text "please type your username and password"

Posted on 2002-05-08
4
233 Views
Last Modified: 2010-05-18
How to change the text "please type your username and password" in the .htaccess pop-up?

Jeffeny
0
Comment
Question by:harryv
  • 3
4 Comments
 
LVL 15

Expert Comment

by:samri
Comment Utility
Harryv,

The keyword that you are looking for is "AuthName".

Please drop by Apache's website on more detailed discusion on Authentication, Authorization, and Access Conrol.

http://httpd.apache.org/docs/howto/auth.html

Following is and example (taken from that site too.)

AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /usr/local/apache/passwd/passwords
Require user rbowen sungo

This would cause the pop-up box to have "By Invitation Only" displayed, followed by Username, and Password input field.

I hope this helps.

cheers.
0
 

Author Comment

by:harryv
Comment Utility
The AuthName "By Invitation Only" is shown by "realm"
What I mean is the words "please type your username and password".

Jeffeny
0
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
Comment Utility
I think I got what you really want,  Instead of a plaint "Enter username for <Realm> at <Servername:port>", you need to display something more informative.

According to Apache's documentation, it is browser-dependent, and nothing to do with server side:

I'm not sure whether it is possible with BasicAuthentication.  Unless you know JavaScript for example, you can develop your own Authentication pop-up box, which pretty much up to your preferences.


Take a look at this URL, and the section.
http://localhost:8000/manual/howto/auth.html
How can I change what the password box looks like?

The dialog that pops up for the user to enter their username and password is ugly. It contains text that you did not indicate that you wanted in there. It looks different in Internet Explorer
and Netscape, and contains different text. And it asks for fields that the user might not understand - for example, Netscape asks the user to type in their ``User ID'', and they might not
know what that means. Or, you might want to provide additional explanatory text so that the user has a better idea what is going on.

Unfortunately, these things are features of the browser, and cannot be controlled from the server side. If you want the login to look different, then you will need to implement your own
authentication scheme. There is no way to change what this login box looks like if you are using basic authentication.
0
 
LVL 15

Expert Comment

by:samri
Comment Utility
Correction:  The URL should be;
http://httpd.apache.org/docs/howto/auth.html
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now