Skip to content

Instantly share code, notes, and snippets.

@basbl
Created August 10, 2012 09:13
Show Gist options
  • Save basbl/3312800 to your computer and use it in GitHub Desktop.
Save basbl/3312800 to your computer and use it in GitHub Desktop.
a .htaccess with .htpasswd settings that whitelists facebook linter ip adresses
AuthName "Realm"
AuthUserFile /path/to/.htpasswd
AuthType Basic
Satisfy Any
<Limit GET POST>
Order Deny,Allow
Deny from all
#https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper
Allow from 31.13.24.0/21
Allow from 31.13.64.0/18
Allow from 66.220.144.0/20
Allow from 69.63.176.0/20
Allow from 69.171.224.0/19
Allow from 74.119.76.0/22
Allow from 103.4.96.0/22
Allow from 173.252.64.0/18
Allow from 204.15.20.0/22
Require valid-user
</Limit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment