HTTP methods
Here, you will find steps to configure conditions based on request method. These then can be used at multiple places such as rewrite/caching/blocking rules.Typical use-case is, you would want to block TRACE, PATCH, CONNECT methods for security purpose.Note: For demo purpose, we will be using www.nviztest.com domain as an example. Here, we will be creating method-group of TRACE, PATCH, CONNECT methods to block them.
Prerequisite#
- You must have a domain configured on Nitrogen.
Steps#
Click on
Settingsmenu, and openHTTP Methodstab.
Create condition by clicking on
Createbutton.
You will now be taken to a screen to provide methods.Group Name: Provide short name about the IP condition you are creating.For now, putIP Blocklisthere. Note: Please keep the name meaningful and relevant.Click on
Add HTTP Methodbutton.
Select required method fromHTTP Methoddropdown. As an example, we will be selectingTRACEhere.Note: You can multiple methods to the same condition by clicking onAdd HTTP Methodbutton.
Click on
Savebutton. The configured pattern will be showed inHTTP Method Groupslist.
You can now use this condition at many places such as rewrite/caching/blocking rules.
Notes#
- A HTTP methods group that is currently in use cannot be edited. To make changes, you can either:
- Delete the rule that is using the HTTP methods group, or
- Clone the existing group and create a new HTTP methods group to use in your rules.