Skip to content

Instantly share code, notes, and snippets.

@GottZ
Created November 10, 2016 14:55
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 GottZ/f731bcce1cf745c2194d7fac2f7af9d7 to your computer and use it in GitHub Desktop.
Save GottZ/f731bcce1cf745c2194d7fac2f7af9d7 to your computer and use it in GitHub Desktop.
# how to block IE in nginx:
if ($http_user_agent ~* 'MSIE ([1-9]|10)\.') {
return 302 https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment