I have read these questions on disabling a list of methods in Tomcat:
- How can I disable HTTP Methods for Tomcat 5.5.27
- Disabling PUT TRACE DELETE request in Apache Tomcat 6.0
But is there a way to return a 405 response instead of a 403 response?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Build a servlet filter that checks the request method and sends a 405 response if the method is on a blacklist.