屏蔽非浏览器的访问

  
  
  
  
  1. if ($http_user_agent ~ ^$) { 
  2.     return 412; 

 

 

 

本文出自 “Netkiller 手札” 博客,转载请与作者联系!

你可能感兴趣的:(nginx,netkiller)