Is it possible to have an .htaccess/.htpasswd access control setup for a given directory, but if they are from a specific IP address, bypass the login/password authentication?

I know you can do something like this in the .htaccess file:

```
order deny,allow
deny from all
allow from 000.000.000.000

```

But if you add something along these lines:

```
AuthType Basic
AuthName "restricted area"
AuthUserFile /path/to/.htpasswd
require valid-user

```

Then it prompts for the password. Is there any way to do an if/else type setup, or some other solution so that users as a given IP (or set of IPs) don't get prompted for a password, but everyone else does?