在Apache服务器中禁用option

在apache禁止 http OPTIONS方法. apache disable http OPTIONS method

 分类:
 

 

[html] view plain copy
 
  1. <Location />  
  2.     <Limit OPTIONS>  
  3.         Deny from all  
  4.     </Limit>  
  5. </Location>  

或者用rewrite

RewriteCond %{REQUEST_METHOD} ^(OPTIONS)
RewriteRule .* - [F]

posted @ 2016-08-30 07:22  灌饼哥  阅读(1330)  评论(0编辑  收藏  举报