Redirect Everyone Except Specified IP’s

Replace x’s with the IP address which you want to allow

ErrorDocument 403 http://www.yourdomainname.com
Order deny,allow
Deny from all
Allow from xxx.xx.xx.xxx