Page 1 of 2

My website keeps asking for username and password

Posted: 2011-12-02 10:08
by zedara
Hi and good morning,
I have created from scratch my company's website but everytime anyone tries to enter the website, it asks for a an username and a password. I have created other websites in the past but it;s the first time I see this error. What's wrong?
My website is <removed>

Thank you in advance

Re: My website keeps asking for username and password

Posted: 2011-12-02 10:51
by boco
Your site does not seem to have an index document (index.html). I get a 404/403 error, but no password prompt.

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:29
by zedara
Hallo again,
My web site does have an index.html . It's the home page of my website

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:31
by boco
Last time it didn't. Now everything seems to be in order. I don't get any prompts.

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:36
by zedara
When I try to enter the website from Chrome,Opera,Firefox and IE it asks me for password and username. I can't figure out what might be wrong

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:41
by boco
This only happens with Javascript on, so it seems that one or more scripts are in a place that requires a login. For example the ../test/ directory?

Do you use any .htaccess files?

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:49
by zedara
I can't delete the test directory because it's there by default by my web host. And no I haven't put any .htaccess file on this website

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:53
by jewel86
Maybe you set username and password in .htaccess file

Re: My website keeps asking for username and password

Posted: 2011-12-06 11:54
by zedara
I don't have .htaccess at all

Re: My website keeps asking for username and password

Posted: 2011-12-06 12:34
by boco
Hm, is the test directory outside of public_html? Because only files and directories in public_html (or similar named weeb directory) are shared to the public.

Re: My website keeps asking for username and password

Posted: 2011-12-06 12:37
by zedara
All the files that are uploaded are inside the httpdocs folder.. Test folder is outside httpdocs folder. Plus it's empty

Re: My website keeps asking for username and password

Posted: 2011-12-06 13:29
by boco
Test folder is outside httpdocs folder. Plus it's empty
When I displayed the page source, there were some spots where it tried to load scripts from the test directory, e. g. ../test/stmenu.js (example, may be similar). I guess that since the test directory is outside your web directory, any access attempt provokes a prompt. Search the spots where it tries to load from that directory and fix them/comment out.

Re: My website keeps asking for username and password

Posted: 2011-12-06 13:46
by zedara
Ok I will..And I'll post the feedback.
Thanks a lot,
Vasilis

Re: My website keeps asking for username and password

Posted: 2011-12-07 09:45
by zedara
It seems that this was the problem. Some scripts were directed to a folder outside the ftp. So I changed the linking and BOOM! Done! PS: I needed to remove some restrictions from the control panel of my web host (In case other people have the same problem)
So 1st check the links
2nd check your web host

Thank you a lot. I really appreciate your help.
Vasilis

Re: My website keeps asking for username and password

Posted: 2016-12-19 07:02
by shahed2000
I have the similar kind of problem with my newly built website. It asks for username and password. Though it says the username is 'administrator' and password 4+2 = '6' but it is annoying, confusing and disturbing.