50 likes | 69 Views
It is important to disable insecure HTTP methods like OPTIONS, HEAD, PUT, DELETE from Apache Server. Here is how to disable HTTP options methods in Apache web server.#apache #webdevelopment <br><br>Visit https://ubiq.co/tech-blog/how-to-disable-http-options-methods-in-apache/
E N D
Open htaccess file Open .htaccess file, typically located at /var/www/html/.htaccess $ sudo vi /var/www/html/.htaccess
Disable HTTP OPTIONS methods Add the following lines to your .htaccess file to disable OPTIONS, TRACE and TRACK methods. RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS) RewriteRule .* - [F] Similarly, you can disable HEAD, PUT, DELETE methods by adding/replacing TRACE|TRACK|OPTIONS
Restart Apache Web Server Restart Apache web server to apply changes. $ sudo service apache2 restart
Thank You Visit for details https://ubiq.co/tech-blog/how-to-disable-http-options-methods-in-apache/