Sun Java System Web Proxy Server 4.0.2 2005Q4 Configuration File Reference

block-multipart-posts

Applicable in PathCheck-class directives.

The block-multipart-posts function blocks all multipart form file uploads when configured without any parameters. This can also be used to block requests based on specific content type, user-agent or HTTP method using content-type, user-agent and method parameters.

Parameters

The following table describes parameters for the block-multipart-posts function.

Table 5–47 block-multipart-posts parameters

Parameter  

Description  

content-type 

(Optional) Regular expression of the content type to be blocked. 

user-agent 

(Optional) Regular expression of the user agent to be blocked. 

method 

(Optional) Regular expression matching the HTTP request method to be blocked. 

Example


PathCheck fn="block-multipart-posts" user-agent="Mozilla/.*" 
	method="(POST|PUT)"