Apache2: Require password for remote users (and not local)

Sometimes it is nice to require password for a site, but only if they are not from a particular ip-number,