Hi can any one confirm if it's possible to do the following

have a .htaccess user name and password but if the ip it comes from it automatically allows thru?