{"id":81,"date":"2017-10-10T07:17:00","date_gmt":"2017-10-10T07:17:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/restrict-http-response-headers-on"},"modified":"2017-10-10T12:08:06","modified_gmt":"2017-10-10T12:08:06","slug":"restrict-http-response-headers","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers","title":{"rendered":"Set HTTP Response Headers on Apache"},"content":{"rendered":"<p>How to set the HTTP Response Headers on Apache server<\/p>\n<h2><span style=\"text-decoration: underline;\">HTTP Response Headers<\/span><\/h2>\n<p>To disable HTTP Response headers, add the following lines for each virtual host in your httpd.conf\u00a0 file\u00a0 <b>.<\/b><br \/>\n<b><br \/>\n<\/b><\/p>\n<div style=\"background-color: #cccccc;\"><b>RewriteEngine on<\/b><\/div>\n<div style=\"background-color: #cccccc;\"><b>RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)<br \/>\nRewriteRule .* &#8211; [F]<\/b><\/div>\n<p><b><br \/>\n<\/b>Apache versions 1.3.34, 2.0.55, and 2.2 support disabling the TRACE method natively via the &#8216;TraceEnable&#8217;<br \/>\ndirective.<b><br \/>\n<\/b><\/p>\n<p>tags: apache set response headder<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to set the HTTP Response Headers on Apache server HTTP Response Headers To disable HTTP Response headers, add the following lines for each virtual host in your httpd.conf\u00a0 file\u00a0&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99,102],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-acl","category-apache"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to set the HTTP Response Headers on Apache server HTTP Response Headers 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 &#039;TraceEnable&#039;\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"msvalidate.01\" content=\"F5B964E0B63F681BBDE95AB72193D75E\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#article\",\"name\":\"Set HTTP Response Headers on Apache - Linux How To\",\"headline\":\"Set HTTP Response Headers on Apache\",\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#articleImage\",\"width\":320,\"height\":320},\"datePublished\":\"2017-10-10T07:17:00+00:00\",\"dateModified\":\"2017-10-10T12:08:06+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#webpage\"},\"articleSection\":\"ACL, APACHE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/acl#listItem\",\"name\":\"ACL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/acl#listItem\",\"position\":2,\"name\":\"ACL\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/acl\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#listItem\",\"name\":\"Set HTTP Response Headers on Apache\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#listItem\",\"position\":3,\"name\":\"Set HTTP Response Headers on Apache\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/acl#listItem\",\"name\":\"ACL\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\",\"name\":\"Linux How To\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers\\\/#organizationLogo\",\"width\":320,\"height\":320},\"image\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#webpage\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers\",\"name\":\"Set HTTP Response Headers on Apache - Linux How To\",\"description\":\"How to set the HTTP Response Headers on Apache server HTTP Response Headers 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'\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/restrict-http-response-headers#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"datePublished\":\"2017-10-10T07:17:00+00:00\",\"dateModified\":\"2017-10-10T12:08:06+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"name\":\"Linux How To\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Set HTTP Response Headers on Apache - Linux How To","description":"How to set the HTTP Response Headers on Apache server HTTP Response Headers 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'","canonical_url":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"msvalidate.01":"F5B964E0B63F681BBDE95AB72193D75E","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#article","name":"Set HTTP Response Headers on Apache - Linux How To","headline":"Set HTTP Response Headers on Apache","author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/#articleImage","width":320,"height":320},"datePublished":"2017-10-10T07:17:00+00:00","dateModified":"2017-10-10T12:08:06+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#webpage"},"isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#webpage"},"articleSection":"ACL, APACHE"},{"@type":"BreadcrumbList","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","position":1,"name":"Home","item":"https:\/\/www.melberi.com\/linuxadmin\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/acl#listItem","name":"ACL"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/acl#listItem","position":2,"name":"ACL","item":"https:\/\/www.melberi.com\/linuxadmin\/category\/acl","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#listItem","name":"Set HTTP Response Headers on Apache"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#listItem","position":3,"name":"Set HTTP Response Headers on Apache","previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/acl#listItem","name":"ACL"}}]},{"@type":"Organization","@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization","name":"Linux How To","url":"https:\/\/www.melberi.com\/linuxadmin\/","logo":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers\/#organizationLogo","width":320,"height":320},"image":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author","url":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#webpage","url":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers","name":"Set HTTP Response Headers on Apache - Linux How To","description":"How to set the HTTP Response Headers on Apache server HTTP Response Headers 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'","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#website"},"breadcrumb":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/restrict-http-response-headers#breadcrumblist"},"author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"creator":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"datePublished":"2017-10-10T07:17:00+00:00","dateModified":"2017-10-10T12:08:06+00:00"},{"@type":"WebSite","@id":"https:\/\/www.melberi.com\/linuxadmin\/#website","url":"https:\/\/www.melberi.com\/linuxadmin\/","name":"Linux How To","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"}}]}},"aioseo_meta_data":{"post_id":"81","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-03-11 17:23:30","updated":"2026-10-21 19:17:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":5,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":686,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/81\/revisions\/686"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}