avatar_Administrator

How to Remove X-Powered-by from PHP or Wordpress or any other Server permanently?

Started by Administrator, Sep 25, 2022, 06:54 PM

Previous topic - Next topic

Administrator



Before Proceeding for further steps please take backup of your default .htaccess file. It can be found inside the root folder of your hosting usually in public_html folder. The Best way to take the backup just download the default .htaccess file before making any changes to it.

Follow the steps below -

1. Edit the .htaccess file.
2. Find out the code on the top as shown below.

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTP_HOST} !^yourdomainname.com$
 RewriteRule ^(.*)$ https://yourdomainname.com/$1 [R=301,L]
   

3. Simply copy the code shown below
Header always unset X-Powered-By and paste it just below the starting code that should look like this.
<IfModule mod_rewrite.c>
4. After pasting the code properly it should look exactly as shown below.
Quote<IfModule mod_rewrite.c>
Header always unset X-Powered-By

5. After Successful code implementation You are done. Now check your website again it's probably could have done the work.

Download the Step by Step Screenshot Attachments below-


Faqs-

What are http Header?


The HTTP header is part of the Hypertext Transfer Protocol (HTTP) and transmits additional information during HTTP requests or responses. In addition to the data that is delivered to a browser by the web server of the called website, server and browser exchange meta information about the document via the HTTP header.

An HTTP request contains a header area with information such as the date of the request, the referrer, or the preferred language. The HTTP response also contains a header field in which the server sends its information to the user's browser. This information exchange is usually invisible to the end user.

HTTP headers include fields which themselves consist of one line. Each line contains a name/value pair - called key-value pair - separated by a colon and is terminated by a line break.

Values that can be used for the HTTP header are defined in the RFC ("Requests for Comments"). In addition to the specified fields, there are also non-standard headers that can be used to add user-defined information. These headers usually start with an

x-

Where individuals can share and get Knowledge