AuthUserFile /path/to/.htpasswd AuthName "Restricted Access" AuthType Basic require user [username] satisfy any deny from all allow from 192.168.0.1 allow from 10.0.0.1 allow from env=facebook allow from env=twitter User-agent: Googlebot Disallow: /wp-admin/ User-agent: * Allow: /