Skip to content

Instantly share code, notes, and snippets.

@thisisthechris
Created June 22, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisisthechris/2973214 to your computer and use it in GitHub Desktop.
Save thisisthechris/2973214 to your computer and use it in GitHub Desktop.
AR .htaccess
SetEnvIf User-Agent "Android" allow_ua [NC]
SetEnvIf User-Agent "bada" allow_ua [NC]
SetEnvIf User-Agent "blackberry" allow_ua [NC]
SetEnvIf User-Agent "iPad" allow_ua [NC]
SetEnvIf User-Agent "iPhone" allow_ua [NC]
SetEnvIf User-Agent "iPod" allow_ua [NC]
SetEnvIf User-Agent "iemobile" allow_ua [NC]
SetEnvIf User-Agent "opera mobile" allow_ua [NC]
SetEnvIf User-Agent "palmos" allow_ua [NC]
SetEnvIf User-Agent "webos" allow_ua [NC]
SetEnvIf User-Agent "googlebot-mobile" allow_ua [NC]
Order deny,allow
deny from all
allow from env=allow_ua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment