Forum Moderators: phranque

Message Too Old, No Replies

change login prompt text on htaccess

         

bilenkyj

1:02 pm on Apr 16, 2008 (gmt 0)

10+ Year Member



Hi Guys, how can i change the text that appears on the login prompt for htaccess?

jdMorgan

1:33 pm on Apr 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The text in the login prompt dialog box is controlled by the AuthName directive, for example

AuthName <Your site or subsection description here> (Click 'Cancel' for help)

The rest of the text in the login dialog box is fixed by mod_auth.

Jim

bilenkyj

12:08 pm on Apr 17, 2008 (gmt 0)

10+ Year Member



thank you, im trying to add a new line in the message - wont work

AuthUserFile /home/yourname/.htpasswd
AuthGroupFile /dev/null
AuthName "\nMy Secret Area\n"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

is it possible to add a new line in the message?

jdMorgan

1:58 pm on Apr 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think so.

As implied by its name, Apache Basic Authentication is, well, basic. If you need features beyond those supported by Basic Auth, then you'll need to buy or write a script to handle authorization/authentication.

Jim