Limit HTTP methods allowed by the Web Server.

Information

For normal web server operation only GET and POST request methods. This will allow for downloading of web pages and uploading any type of basic form submission information. LimitExcept directive can be used to limit the methods allowed by the web server. The HEAD requests are included with GET requests when using the LimitExcept directive. LimitExcept directive works well for all methods except TRACE.
NOTE - User must check output for 'deny from all'

Solution

Edit the httpd.conf file and add the following inside the document root directory stanza:
<LimitExcept GET POST>
deny from all
</LimitExcept>
A sample conf file would look like:
<Directory '/var/www'>
Options -FollowSymLinks -Indexes -Includes -MultiViews
<LimitExcept GET POST>
deny from all
</LimitExcept>
AllowOverride None
Order allow, deny
Allow from all
</Directory>

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6

Plugin: Unix

Control ID: d7b2fc45756dc47cd343aaadba3197f1649921c34ecd472509e230863cf46f0e