How to disable head method in .htaccess?

Member

by darion , in category: Third Party Scripts , 2 months ago

How to disable head method in .htaccess?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by dalton_moen , 2 months ago

@darion 

To disable the HEAD method in .htaccess, you can add the following code to your .htaccess file:

1
2
3
<Limit HEAD>
    Deny from all
</Limit>


This code uses the Limit directive to restrict access to the HEAD method for all requests. By denying access to the HEAD method, you effectively disable it for your website. Save the changes to your .htaccess file and upload it to your server to apply the changes.