Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RESTful PUT and DELETE and firewalls

Tags:

In the classic "RESTful Web Services" book (O'Reilly, ISBN 978-0-596-52926-0) it says on page 251 "Some firewalls block HTTP PUT and DELETE but not POST."

Is this still true?

If it's true I have to allow overloaded POST to substitute for DELETE.

like image 322
Mark Lutton Avatar asked Dec 01 '09 20:12

Mark Lutton


2 Answers

Firewalls blocking HTTP PUT/DELETE are typically blocking incoming connections (to servers behind the firewall). Assuming you have controls over the firewall protecting your application, you shouldn't need to worry about it.

Also, firewalls can only block PUT/DELETE if they are performing deep inspection on the network traffic. Encryption will prevent firewalls from analyzing the URL, so if you're using HTTPS (you are protecting your data with SSL, right?) clients accessing your web service will be able to use any of the standard four HTTP verbs.

like image 195
ironchefpython Avatar answered Oct 12 '22 23:10

ironchefpython


Some 7 layer firewalls could analyze traffic to this degree. But I'm not sure how many places would configure them as such. You might check on serverfault.com to see how popular such a config might be (you could also always check with your IT staff)

like image 44
Matthew Whited Avatar answered Oct 13 '22 00:10

Matthew Whited