Skip to content

Instantly share code, notes, and snippets.

@kentwidman
kentwidman / gist:6940117
Last active December 25, 2015 07:29
Password protected .htaccess allowing Facebook Crawler access
SetEnvIfNoCase User-Agent .*google.* search_robot
Order Deny,Allow
Deny from All
Allow from env=search_robot
#password
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /path/to/.htpasswd