I've enabled htpasswd on a webpage. Is there a way I can limit the number of attempts a user has to enter the correct username/pass credentials before they have to do a hard refresh of the page?
Not with basic authentication, you'll need to go to a different authentication module in order to do it. I was just reading up on mod_auth_pamacea which allows you to use the PAM libraries and all of their goodness with
I'm sure there are other auth modules that will allow the same functionality, to me this is the closest you'll come to