Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #######################################################################
- map $http_user_agent $is_desktop {
- default 1;
- ~*(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i 0; # exceptions to the rule
- }
- ## Revert the logic.
- map $is_desktop $is_mobile {
- 1 0;
- 0 1;
- }
- ####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement