I have a website that has been giving me this problem for the last year and i cant seem to figure it out. I have directories which contain htaccess which point to usernames and passwords, when folks get the popup login box they can simply press enter and it will allow them in without using a username but if they try logging in with incorrect values it will function correctly and give them error. The only fix i have been able to come up with is using this htaccess generator which i import all the users into and then simply copy what it gives me into the htpasswd file and blank login is not allowed but some reason hours later the blank login problem is back. Am i being hacked?
"(Several) hours later" sounds like a hack. Contact your host, and look for unknown scripts buried in both "unknown-to-you" and familiar directories. Compare filesizes and creation dates of all of your scripts to the original backups that you've kept separately. If the filesizes and dates don't match, that script may have been modified.
The first step is to stop the intrusions -- close the hole that allowed malicious users to get in to your server. Change all "webmaster and admin access" passwords, update all commercial scripts to the latest patch level. The second step is to replace the hacked code. Doing this in reverse order is not useful.
thanks so much for response Jim. My biggest problem is i was bought onto this website a year after it was developed and there is no telling what the orginal web guy has going on. I know its a hack for sure becuase how things happen, i can lock the reload the htpasswd file with new encryptions and everything work fine and then maybe days later the site is back open. its like maybe someone is logging in every now and then and once they see i have reloaded the htpasswd they do whatever it is they do, im just so lost on where to look being that i really didnt develop the backend at all. was hired as frontend designer, have explained to the client the only real way to get this taken care of is to start from scratch and letme redo everything, front and back.