If I really need to use these methods, how do i make sure they are secure?
Edit: Is there a link or source where I can see how to make sure that 'PUT' and 'DELETE' methods are not able to delete or update resource, but services and servlets are still able to use PUT and DELETE.
Following services are using PUT and DELETE HTTP methods
https://developers.google.com/drive/v2/reference/files/delete
http://developers.facebook.com/docs/reference/api/Comment/
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html
http://www.salesforce.com/us/developer/docs/api_rest/index.htm
http://developer.tradeshift.com/rest-api/#tsapi.conventions
http://developer.linkedin.com/documents/groups-api#create
https://developer.paypal.com/webapps/developer/docs/api/#delete-a-stored-credit-card
So, clearly there has to be a way of making sure that PUT and DELETE can be used without putting resource files to harm like HTML, CSS, JS, or images.