My website keeps asking for username and password

Post all HTML related questions here. No support.

Moderator: Project members

Message
Author
zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

My website keeps asking for username and password

#1 Post by zedara » 2011-12-02 10:08

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
Last edited by boco on 2011-12-06 11:36, edited 1 time in total.
Reason: Must remove URL since it's commercial.

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: My website keeps asking for username and password

#2 Post by boco » 2011-12-02 10:51

Your site does not seem to have an index document (index.html). I get a 404/403 error, but no password prompt.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#3 Post by zedara » 2011-12-06 11:29

Hallo again,
My web site does have an index.html . It's the home page of my website

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: My website keeps asking for username and password

#4 Post by boco » 2011-12-06 11:31

Last time it didn't. Now everything seems to be in order. I don't get any prompts.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#5 Post by zedara » 2011-12-06 11:36

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

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: My website keeps asking for username and password

#6 Post by boco » 2011-12-06 11:41

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?
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#7 Post by zedara » 2011-12-06 11:49

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

jewel86
421 Kicked by Administrator
Posts: 1
Joined: 2011-12-06 10:29
First name: Jewel
Last name: Nguyen

Re: My website keeps asking for username and password

#8 Post by jewel86 » 2011-12-06 11:53

Maybe you set username and password in .htaccess file

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#9 Post by zedara » 2011-12-06 11:54

I don't have .htaccess at all

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: My website keeps asking for username and password

#10 Post by boco » 2011-12-06 12:34

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.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#11 Post by zedara » 2011-12-06 12:37

All the files that are uploaded are inside the httpdocs folder.. Test folder is outside httpdocs folder. Plus it's empty

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: My website keeps asking for username and password

#12 Post by boco » 2011-12-06 13:29

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.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#13 Post by zedara » 2011-12-06 13:46

Ok I will..And I'll post the feedback.
Thanks a lot,
Vasilis

zedara
504 Command not implemented
Posts: 8
Joined: 2011-12-02 10:05
First name: Vasilios
Last name: Chatzik

Re: My website keeps asking for username and password

#14 Post by zedara » 2011-12-07 09:45

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

shahed2000
500 Command not understood
Posts: 2
Joined: 2016-12-19 06:52
First name: Shahed
Last name: Mustafa

Re: My website keeps asking for username and password

#15 Post by shahed2000 » 2016-12-19 07:02

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.

Locked