禁用Apache的Options和Trace方法
2016-12-19 14:08
176 查看
使用Apache的重写规则来禁用Options方法和Trace方法 在Apache配置文件httpd-conf中【vhosts-conf】添加以下代码: 单独禁用Trace方法: RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] 单独禁用Options方法: RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(OPTIONS) RewriteRule .* - [F] 同时禁用Trace方法和Options方法 RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS) RewriteRule .* - [F] <VirtualHost *:80> DocumentRoot "D:\wwwroot" ServerName www.abc.com ServerAlias abc.com <Directory "D:\wwwroot"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS) RewriteRule .* - [F] </Directory> </VirtualHost> |
相关文章推荐
- Apache安全加固--修复SSL/TLS弱密码漏洞(中危)和禁用TRACE/TRACK方法(高危)
- 禁用apache OPTIONS方法
- 禁用apache OPTIONS方法
- 禁用apache OPTIONS方法
- Apache TraceEnable关闭与测试方法
- 在apache禁止 http OPTIONS方法. apache disable http OPTIONS method
- [轻微]WEB服务器启用了OPTIONS方法/如何禁止DELETE,PUT,OPTIONS等协议访问应用程序/tomcat下禁用不安全的http方法
- http请求方法(GET、POST、HEAD、OPTIONS、PUT、DELETE、TRACE、CONNECT)
- Mac MAMP 安装 tp5 出现 apache Directory index forbidden by Options directive 错误解决方法
- grails项目编译时,如果报错:java.lang.NoClassDefFoundError: org/apache/commons/cli/Options的解决方法
- http请求方法(GET、POST、HEAD、OPTIONS、PUT、DELETE、TRACE、CONNECT)
- http协议中:GET/POST/PUT/DELETE/INPUT/TRACE/OPTIONS/HEAD方法
- [轻微]WEB服务器启用了OPTIONS方法/如何禁止DELETE,PUT,OPTIONS等协议访问应用程序/tomcat下禁用不安全的http方法
- [安全漏洞公告专区]【漏洞公告】CVE-2017-9798:“Optionsbleed”-Apache HTTP OPTIONS方法内存泄露漏洞
- POI操作excel2007 出现异常 java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions 解决方法
- http协议中:GET/POST/PUT/DELETE/INPUT/TRACE/OPTIONS/HEAD方法
- 我的SEO之路2013年1月23日之apache Directory index forbidden by Options directive 错误解决方法
- apache访问提示Directory index forbidden by Options directive: /var/www/html/解决方法
- http协议中:GET/POST/PUT/DELETE/INPUT/TRACE/OPTIONS/HEAD方法
- http协议中:GET/POST/PUT/DELETE/TRACE/OPTIONS/HEAD方法