Solved

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

Posted on 2002-05-08
4
235 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
ID: 6996256
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
ID: 6996302
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
ID: 6996457
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
ID: 6997948
Correction:  The URL should be;
http://httpd.apache.org/docs/howto/auth.html
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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