Spooky
Halloween Sale

25%
OFF

Coupon Code:
SPOOKY25

Hour
Min
Sec
Expired

Limited Time Only

Coupon: BFCM50

⚡FLASH SALE⚡

End's Tonight

Coupon: FLASH4YOU

LIMITED TIME ONLY

Limited License Available

Day
Hour
Min
Sec
Expired

Remove X-Powered-By from HTTP Headers

This response header contains information about PHP version on your server. This information is not used anywhere and it’s not necessary to run your website. So it’s better to remove X-Poweed-by from HTTP Headrs. 

Here is a snippet for you, that will remove X-Powered-By from your HTTP headers. Just copy the following code and paste it inside your function.php file. You can access your function.php file inside your active theme root directory. 

				
					// Remove X-Powered-By
add_action('wp', 'jltwp_adminify_remove_powered');
function jltwp_adminify_remove_powered()
{
    if (function_exists('header_remove')) {
        header_remove('x-powered-by');
    }
}
				
			

Get 60+ More Tweaks like x Powerd by Removal

Access more HTTP Response tweaks including Head, Feed, WP JSON API, Post/Archives, Attachments, Performance, and more.

Remove X-Powered-By via WP Adminify

Here is another solution for Removing X-Powered-By using WP Adminify plugin. Login to your dashboard and install WP Adminify plugin first. Then navigate to WP Adminify > Tweaks > HTTP Response. Search for “Remove X-Powered-By from HTTP Headers” option and enable it.

Remove X-Powered-By from HTTP Headers

That’s it. You don’t need to be an expert on coding to remove X-Powered-By from HTTP Headers on your WordPress Website. If you still have any problems, feel free to get in touch with us via our support forum

October 2, 2022
HTTP Response
Was this article helpful?

SALE ENDS IN:

Minutes :
Seconds

— Limited Time Flash Sale—

⚡ 50% OFF ⚡

COUPON CODE: BFCM50