How to access htpasswd protected page automatically

I have a password protected directory with htaccess and htpasswd.

htaccess is as follows

AuthUserFile /usr/local/you/safedir/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user myusername

htpasswd is as follows

myusername:password887

This password protected directory is called www.mydomainname.com/mystuff

Now I want to access this page iframe frame (with www.mydomain.com/mustuff/index.html as src) in index.php in my root, but I do not want users to fill in the username and password all the time, just do not let them enter the folder where src is located.

Is there a script that can automatically fill in the username and password, preventing the "users" from writing the username and password all the time?

+5
source share
3 answers

src :

http://myusername:password887@www.mydomainname.com/mystuff

, /, URL.

, /mystuff, , iframe, , . .

+7

, , htpasswd

0

Google Chrome 37+ (, ) , Jon Lin, automatically URL URL, without, .

0

All Articles