Restrict the HTTP Response Headers on Apache

How to restrict the HTTP Response Headers on server


To disable HTTP Response headers, add the following lines for each virtual host in your httpd.conf  file  .


RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]






Apache versions 1.3.34, 2.0.55, and 2.2 support disabling the TRACE method natively via the 'TraceEnable'
directive.



tags: apache set response headder



FOLLOW US :-    
   


0 comments :

Post a Comment