Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Created January 8, 2016 03:07
Show Gist options
  • Save nishinoshake/4b48e2d158c6854c17c5 to your computer and use it in GitHub Desktop.
Save nishinoshake/4b48e2d158c6854c17c5 to your computer and use it in GitHub Desktop.
Facebookのクローラーを許可
AuthUserFile absolute_path
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
Satisfy Any
Order Allow,Deny
SetEnvIf User-Agent "^facebookexternalhit.*$" fb_crawler
SetEnvIf User-Agent "^facebookplatform.*$" fb_crawler
Allow from env=fb_crawler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment