Forum Moderators: phranque

Message Too Old, No Replies

Confusing errors on site

401 unauthorized

         

tictoc

5:29 am on Jun 3, 2009 (gmt 0)

10+ Year Member Top Contributors Of The Month



I am not sure where to post this but I am having some strange things happen to my site and the web host support is closed down for the night. They responded earlier saying "they forced a permission check on the server" but that makes no sense to me.

I basically have a site where it is saying 401 unauthorized for no reason at all. I have not setup any directories that are password protected. I cannot understand why it says this 401 unauthorized. Which is what people get when they come to my site. I have never seen anything like this before and cant understand how to get my site online. I am worried google will think my site no longer exists with all this confusion.

Please help if you can.

phranque

6:08 am on Jun 3, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



usually 401 Unauthorized [w3.org] is the correct response for a failed authentication request.
upon receiving such a response it would be normal behavior for the user agent to collect the authentication information and make a new request while providing an authentication header.
perhaps it is a cache issue.
try a different user agent or clearing cache and a new request.

here is the protocol for Basic and Digest Access Authentication [ietf.org] which may have some useful information for you.
you might also want to read up on the correct use of the http Authorization [w3.org] header for clues.

tictoc

7:18 am on Jun 3, 2009 (gmt 0)

10+ Year Member Top Contributors Of The Month



try a different user agent or clearing cache and a new request.

Everyone who goes to my site is getting this error. I am not sure what you mean by that.

This is something that all the sudden happened to my site and I had no control over.

tictoc

8:19 am on Jun 3, 2009 (gmt 0)

10+ Year Member Top Contributors Of The Month



I think I got hacked...nothing else seems to explain this.

rocknbil

4:27 pm on Jun 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd pursue this

"they forced a permission check on the server"

and find out what they mean. It could be your host has closed access to this site for one reason or another, possibly, as you say, someone has hacked it or some other reason.

JS_Harris

9:46 am on Jun 4, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Trying to directly access a page that you do not want showing up, such as your images folder, will generate this problem too. If it's happening sitewide check your .htaccess settings.

phranque

7:29 am on Jun 5, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



that's a good point, JS_Harris.
if you have Options -Indexes [httpd.apache.org] that will forbid a directory listing unless there is a valid resource available such as one specified by the DirectoryIndex Directive [httpd.apache.org].
this is all assuming an apache server, of course.