Add support for htpasswd protection

cc @rwos