How To Disable HTTP Options Methods in Apache
How To Disable HTTP Options Methods in Apache
OPTIONS Methods in
Apache
Open htaccess file
$ 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
RewriteRule .* - [F]
Similarly, you can disable HEAD, PUT, DELETE methods by adding/replacing TRACE|TRACK|OPTIONS
Restart Apache Web Server