Block CONNECT method in httpd.conf

1
2
3
4
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(CONNECT|TRACE)$
RewriteRule ^.*$ - [L,F]
ProxyRequests Off

ProxyRequest should be set to off, unless you have security protect in your web server.