1 / 5

How to Disable HTTP Options Methods in Apache

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/

Télécharger la présentation

How to Disable HTTP Options Methods in Apache

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How To Disable HTTP OPTIONS Methods in Apache

  2. Open htaccess file Open .htaccess file, typically located at /var/www/html/.htaccess $ sudo vi /var/www/html/.htaccess

  3. 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

  4. Restart Apache Web Server Restart Apache web server to apply changes. $ sudo service apache2 restart

  5. Thank You Visit for details https://ubiq.co/tech-blog/how-to-disable-http-options-methods-in-apache/

More Related