Created
January 8, 2016 03:07
-
-
Save nishinoshake/4b48e2d158c6854c17c5 to your computer and use it in GitHub Desktop.
Facebookのクローラーを許可
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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