{"id":2473,"date":"2020-11-30T04:20:21","date_gmt":"2020-11-30T04:20:21","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2473"},"modified":"2025-08-28T05:59:18","modified_gmt":"2025-08-28T05:59:18","slug":"how-to-remove-x-powered-by-in-apache-php","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/","title":{"rendered":"How to Remove x-powered-by in Apache\/PHP"},"content":{"rendered":"\n<p>By default, every website running on Apache server contains X-Powered-By response header. Often website administrators need to hide x-powered-by in Apache\/PHP server to protect your web server&#8217;s identity and prevent malicious attackers from exploiting its security vulnerabilities. In this article, we will look at how to remove x-powered-by in Apache\/PHP.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#What_is_Server_Signature\" >What is Server Signature<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#Why_Remove_x-powered-by_in_Apache\" >Why Remove x-powered-by in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#How_to_Remove_x-powered-by_in_ApachePHP\" >How to Remove x-powered-by in Apache\/PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#1_Using_phpini\" >1. Using php.ini<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#2_Using_Apache_header_directive\" >2. Using Apache header directive<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#UbuntuDebian\" >Ubuntu\/Debian<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#RHELFedoraCentOS\" >RHEL\/Fedora\/CentOS<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#3_Using_PHP_code\" >3. Using PHP code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Server_Signature\"><\/span>What is Server Signature<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By default, every server displays something called as server signature. This is true for all major web servers such as Apache and NGINX. It contains information about server name, its version and other information. It can also contain information about other software technology that is powering your website. This server signature is present as X-Powered-By response header sent by the server for every response received from your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Remove_x-powered-by_in_Apache\"><\/span>Why Remove x-powered-by in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>X-Powered-By response header can also contain sensitive information about your technology stack that can be exploited by attackers and bots. For example, it contains information about server name and version, and also your software backend such as PHP and its version. Using this information, attackers can easily exploit vulnerabilities associated with a specific Apache or PHP version. Therefore, it is important to remove this header on production systems. Please note, this information is present even if the requested URL does not exist on your website and the server returns &#8216;404:Page not found&#8217; response.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Remove_x-powered-by_in_ApachePHP\"><\/span>How to Remove x-powered-by in Apache\/PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are multiple ways to remove x-powered-by in Apache\/PHP. We will look at each of them one by one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Using_phpini\"><\/span>1. Using php.ini<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you have access to php.ini file (PHP configuration) file, typically found at <em>\/etc\/php.ini<\/em> or <em>\/etc\/php5\/apache2\/php.ini<\/em> depending on your Linux distribution, then open terminal and run the following command to view php.ini in a text editor.<\/p>\n\n\n\n<pre id=\"block-1c043da3-8beb-452d-bfb5-b7132955540b\" class=\"wp-block-preformatted\">$ sudo vi \/etc\/php.ini<\/pre>\n\n\n\n<p>Find the following line.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>expose_php = <\/code><strong><code>o<\/code>n<\/strong><\/pre>\n\n\n\n<p>Change it to the following, to hide <a href=\"https:\/\/stackoverflow.com\/questions\/33580671\/what-does-x-powered-by-mean\">x-powered-by<\/a> header.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>expose_php = <strong>off<\/strong><\/code><\/pre>\n\n\n\n<p>Save and close the file.<\/p>\n\n\n\n<p>Restart Apache server to apply changes.<\/p>\n\n\n\n<pre id=\"block-2fe77fa6-2542-4355-8f62-f0e9ec0efb0a\" class=\"wp-block-preformatted\">$ sudo service apache2 restart<\/pre>\n\n\n\n<p>Please note, the above setting will disable x-powered-by for all web pages on your website, at one go.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Using_Apache_header_directive\"><\/span>2. Using Apache header directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can also use Apache&#8217;s <a href=\"https:\/\/httpd.apache.org\/docs\/2.2\/mod\/mod_headers.html#header\">mod_headers<\/a> module to reset specific headers. It allows you to set or reset response headers as per your requirement. Depending on your Linux system, you can enable mod_headers using the following steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"UbuntuDebian\"><\/span>Ubuntu\/Debian<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Open terminal and run the following command to enable mod_headers.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo a2enmod headers<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"RHELFedoraCentOS\"><\/span>RHEL\/Fedora\/CentOS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>mod_headers module is already enabled in RHEL\/Fedora\/CentOS systems.<\/p>\n\n\n\n<p>Once you have enabled this module, you can add the following line in Apache server configuration, Virtual Host, or .htaccess file. You can place it anywhere in these files or in a specific Directory tag as per your requirement.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Header unset X-Powered-By<\/pre>\n\n\n\n<p>Restart Apache server to apply changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Using_PHP_code\"><\/span>3. Using PHP code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you don&#8217;t have access to php.ini, just add the following to your PHP response, to remove or overwrite the x-powered-by header before sending it to the client.<\/p>\n\n\n\n<p>The following function will remove x-powered-by header on the page where this code is placed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php <code>header_remove(\"X-Powered-By\");<\/code> ?&gt;<\/pre>\n\n\n\n<p>The following function will replace the x-powered-by header value &#8216;ABC&#8217;, instead of removing it. You can change it as per your requirement.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php <code>header(\"X-Powered-By: <strong>ABC<\/strong>\");<\/code> ?&gt;<\/pre>\n\n\n\n<p><strong>Please note<\/strong>, the above code will only remove x-powered-by header from the page on which it is placed. So you need to place it on all pages of your web site, or template pages so that they are inherited by all child pages. In this method, if you do not place this code on any page, then attackers can figure out your technology by simply requesting that page. They can even get this information by requesting a page that does not exist. So this method is not entirely foolproof. <\/p>\n\n\n\n<p>As you can see it is easy to remove x-powered-by header in Apache\/PHP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have learnt a couple of simple ways to easily turn off x-powered-by response header on Apache web server. As mentioned earlier, it is important to disable server signature on Apache server. Otherwise, malicious attackers and bots will use it to figure out the technology stack of your website and then use it to exploit its vulnerabilities. This is especially true if you are using an old version of Apache\/PHP on your server. Among the solutions discussed above, we recommend you to set expose_php directive in php.ini or Header directive in Apache configuration\/.htaccess file. This is because it is a site-wide setting that works on all pages. Using header_remove() or header() php functions will only apply the change on that page and not other pages.<\/p>\n\n\n\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data in minutes, and monitor in real-time dashboards.&nbsp;<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a>&nbsp;Today!<\/p>\n\n\n\n<p>Also read<br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-disable-http-options-methods-in-apache\/\">How to Disable HTTP OPTIONS methods in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-set-default-charset-to-utf-8-encoding-in-apache-using-htaccess\/\">How to Set Default Charset to UTF8 encoding in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you may need to remove x-powered-by header in Apache\/PHP. Here is how to remove -powered-by in Apache\/PHP.<\/p>\n","protected":false},"author":1,"featured_media":2480,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[244],"class_list":["post-2473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-x-powered-by"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Remove x-powered-by in Apache\/PHP - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Sometimes you may need to hide x-powered-by header in Apache\/PHP. Here is how to remove x-powered-by in Apache\/PHP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Remove x-powered-by in Apache\/PHP - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Sometimes you may need to hide x-powered-by header in Apache\/PHP. Here is how to remove x-powered-by in Apache\/PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-30T04:20:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-28T05:59:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"485\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Remove x-powered-by in Apache\\\/PHP\",\"datePublished\":\"2020-11-30T04:20:21+00:00\",\"dateModified\":\"2025-08-28T05:59:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/\"},\"wordCount\":807,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1\",\"keywords\":[\"x-powered-by\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/\",\"name\":\"How to Remove x-powered-by in Apache\\\/PHP - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1\",\"datePublished\":\"2020-11-30T04:20:21+00:00\",\"dateModified\":\"2025-08-28T05:59:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Sometimes you may need to hide x-powered-by header in Apache\\\/PHP. Here is how to remove x-powered-by in Apache\\\/PHP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1\",\"width\":620,\"height\":485,\"caption\":\"how to remove x-powered-by in apache\\\/php\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-remove-x-powered-by-in-apache-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Remove x-powered-by in Apache\\\/PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Remove x-powered-by in Apache\/PHP - Ubiq BI","description":"Sometimes you may need to hide x-powered-by header in Apache\/PHP. Here is how to remove x-powered-by in Apache\/PHP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/","og_locale":"en_US","og_type":"article","og_title":"How to Remove x-powered-by in Apache\/PHP - Ubiq BI","og_description":"Sometimes you may need to hide x-powered-by header in Apache\/PHP. Here is how to remove x-powered-by in Apache\/PHP.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-11-30T04:20:21+00:00","article_modified_time":"2025-08-28T05:59:18+00:00","og_image":[{"width":620,"height":485,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Remove x-powered-by in Apache\/PHP","datePublished":"2020-11-30T04:20:21+00:00","dateModified":"2025-08-28T05:59:18+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/"},"wordCount":807,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1","keywords":["x-powered-by"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/","name":"How to Remove x-powered-by in Apache\/PHP - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1","datePublished":"2020-11-30T04:20:21+00:00","dateModified":"2025-08-28T05:59:18+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Sometimes you may need to hide x-powered-by header in Apache\/PHP. Here is how to remove x-powered-by in Apache\/PHP.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1","width":620,"height":485,"caption":"how to remove x-powered-by in apache\/php"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-remove-x-powered-by-in-apache-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Remove x-powered-by in Apache\/PHP"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/how-to-remove-x-powered-by.jpg?fit=620%2C485&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-DT","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=2473"}],"version-history":[{"count":25,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2473\/revisions"}],"predecessor-version":[{"id":9327,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2473\/revisions\/9327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2480"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}