Category Archives: alert

How can I style a .htaccess password protection promp?

I've just been messing around with setting a password protected directory on my webserver (so as to store hot copies of backups etc.) and was wondering if there's any way I may be able to style the password prompt that appears when a user attempts to access this page.

screenshot of the default prompt

As it stands nobody will notice my nice little note, which makes me sad.

my prompt

It seems to display similarly to a standard .js alert, though I've been unable to find a way to specify any css classes I may be able to alter, as the "alert" box does not show up in devtools, just the page bahind it:

screenshot of html source

Any advice / tips would be greatly appreciated.