Disabling HTTP TRACE method in Apache

This is a discussion on Disabling HTTP TRACE method in Apache within the Linux Security forums, part of the System Security and Security Related category; Greetings, I am trying to disable the HTTP TRACE method in Apache. For that I add the following configuration lines ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008
bzaman
 
Posts: n/a
Default Disabling HTTP TRACE method in Apache

Greetings,

I am trying to disable the HTTP TRACE method in Apache.
For that I add the following configuration lines in httpd.conf


<Directory />
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</Directory>

After that I tried to check whether TRACE method is disabled or
not.
using the following commands.

telnet 172.16.16.25 80
Trying 172.16.16.25...
Connected to 172.16.16.25 (172.16.16.25).
Escape character is '^]'.
TRACE / HTTP/1.1
Host: 172.16.16.25

HTTP/1.1 200 OK
Date: Tue, 26 Feb 2008 21:06:29 GMT
Server: Apache
Transfer-Encoding: chunked
Content-Type: message/http

28
TRACE / HTTP/1.1
Host: 172.16.16.25

0

Connection closed by foreign host.

The output confirms that TRACE method was not disabled.
Please clarify me how to disable HTTP TRACE method.
I am using the following Apache version

Server version: Apache/2.2.8 (Unix)
Server built: Feb 18 2008 12:23:43

With Thanks in Advance.

regards
zaman



Reply With Quote
  #2 (permalink)  
Old 02-26-2008
Stachu 'Dozzie' K.
 
Posts: n/a
Default Re: Disabling HTTP TRACE method in Apache

On 26.02.2008, bzaman <bzaman.laskar@gmail.com> wrote:
> Greetings,
>
> I am trying to disable the HTTP TRACE method in Apache.
> For that I add the following configuration lines in httpd.conf
>
>
> <Directory />
> RewriteEngine On
> RewriteCond %{REQUEST_METHOD} ^TRACE
> RewriteRule .* - [F]
> </Directory>


And why don't you simply disable this method (<Method ...> directive
with mod_access) instead of messing with mod_rewrite?

--
Secunia non olet.
Stanislaw Klekot
Reply With Quote
  #3 (permalink)  
Old 02-26-2008
Ertugrul Söylemez
 
Posts: n/a
Default Re: Disabling HTTP TRACE method in Apache

On Tue, 26 Feb 2008 03:54:58 -0800 (PST)
bzaman <bzaman.laskar@gmail.com> wrote:

> I am trying to disable the HTTP TRACE method in Apache.


TraceEnable Off


Regards,
Ertugrul.


--
http://ertes.de/

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0