• Bypass .htaccess authentication for facebook debug tools
    development facebook apache Monday, June 3, 2013
  • Facebook Female Vs. Male
    photo facebook Saturday, April 16, 2011
  • ‘The Daily Show’ Weighs In On The Facebook Investment Frenzy [Video]
    url facebook Friday, January 7, 2011

Bypass .htaccess authentication for facebook debug tools

Bypass .htaccess authentication for facebook debug tools

# First set an environment variable for Facebook
SetEnvIf User-Agent ^facebookexternalhit.*$ Facebook=1

# In your password authentication on directory level, allow Facebook ...

        AllowOverride All         AuthType Basic         AuthName "Requires Authentication"         AuthUserFile XXX         Require valid-user         Order deny,allow         Deny from all         Allow from 127.0.0.1         Allow from XXX.XXX.XXX.XX         Allow from XXX.XXX.XXX.XX         Allow from env=Facebook         Satisfy Any