NetScaler-13.1-How to block HTTP requests with PUT method for gateway virtual server

book

Article ID: CTX695299

calendar_today

Updated On:

Description

You can run the following commands to block HTTP requests with PUT method to gateway virtual servers.

add responder policy Reset-PUT-act "HTTP.REQ.METHOD.EQ(\"PUT\")" RESET
bind vpn vserver <vserver_name> -policy Reset-PUT-act -priority 100 -gotoPriorityExpression END -type REQUEST
bind vpn vserver <vserver_name> -policy Reset-PUT-act -priority 100 -gotoPriorityExpression END -type AAA_REQUEST

 

After running the above commands, we can see the HTTP requests with PUT method are blocked succesfully.

Issue/Introduction

The customer found that HTTP requests with PUT method to gateway virtual server are allowed by default. The following is a screenshot for getting "200 OK" response after sending HTTP requests with PUT method.

The customer would like to block this kind of requests for better security.

image.png